Category query inconsistency
-
I have the following code in the sidebar of my site. It works fine on every page, except for the homepage. On the homepage, a sub-category of 3 is showing up under the “categories”
<li>
instead of the “notebook”<li>
. Thanks for your help.<li id="categories"> <h3><?php _e( 'Categories', 'sandbox' ) ?></h3> <ul> <?php wp_list_categories('title_li=&show_count=0&hierarchical=1&exclude=3') ?> </ul> </li> <li id="notebook"> <h3><?php _e( 'Leslie\'s Notebook', 'sandbox' ) ?></h3> <ul> <?php wp_list_categories('title_li=&show_count=0&hierarchical=0&child_of=3') ?> </ul> </li>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Category query inconsistency’ is closed to new replies.