Forums

List categories wp_list_categories() strange behavior (1 post)

  1. twobadfish
    Member
    Posted 1 year ago #

    <?php
       define('WP_USE_THEMES', false);
       require($_SERVER['DOCUMENT_ROOT'].'/w2eat/blog/wp-blog-header.php');
       wp_list_categories( $args );
    ?>

    I use this same code on http://wildreason.com/blog and it works. On http://wildreason.com/w2eat however, it works everywhere aside from the actual blog page http://wildreason.com/w2eat/blog. I am using the same exact code on my root site and it works. I have a list_categories.php with that code located at /w2eat/blog and use an include statement on my sidebar page.

    I've tried putting the code from list_categories.php directly in my sidebar page and it behaves the same. It definitely wasn't the upgrade to 3.0 because it didn't happen to my main site.

    Any thoughts?

Topic Closed

This topic has been closed to new replies.

About this Topic