WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Category query inconsistency (2 posts)

  1. stanford
    Member
    Posted 3 years ago #

    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>
  2. stanford
    Member
    Posted 3 years ago #

    Wow, it fixed itself. I don't know what happened... wasn't a caching issue because I cleared the cache.

Topic Closed

This topic has been closed to new replies.

About this Topic