get_var("SELECT MAX(count) FROM $wpdb->term_taxonomy WHERE taxonomy = 'post_tag';"); $tags = get_tags(); // Always query top tags $cat_max = $wpdb->get_var("SELECT MAX(count) FROM $wpdb->term_taxonomy WHERE taxonomy = 'category';"); $categories = get_categories(); $date = date('Y-m-d\Th:i:s'); $url = get_bloginfo('url'); $url = str_replace('https://', '', $url); $url = str_replace('http://', '', $url); //print_r($categories); header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true); echo ('') ?> Taxonomy APML for <?php echo get_bloginfo('name', 'display') ?> wordpress/