* @package WordPress
*/
-if ( empty($wp) ) {
- require_once('./wp-load.php');
- wp();
-}
+require_once('./wp-load.php');
header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
$link_cat = '';
<body>
<?php
if ( empty($link_cat) )
- $cats = get_categories(array('type' => 'link', 'hierarchical' => 0));
+ $cats = get_categories(array('taxonomy' => 'link_category', 'hierarchical' => 0));
else
- $cats = get_categories(array('type' => 'link', 'hierarchical' => 0, 'include' => $link_cat));
+ $cats = get_categories(array('taxonomy' => 'link_category', 'hierarchical' => 0, 'include' => $link_cat));
foreach ( (array)$cats as $cat ) :
$catname = apply_filters('link_category', $cat->name);
endforeach; // $cats
?>
</body>
-</opml>
+</opml>
\ No newline at end of file