Forums

Certain sub-categories not showing postings within them (6 posts)

  1. ziprz
    Member
    Posted 3 years ago #

    On our blog, we show categories and subcategories for posts in the sidebar and on the Categories page. The bulk of subcategories do not show content, making the site look broken, but the subcategories under "Finding Work" DO work.

    Have a look at http://ithirewire.com/categories

    Our developer has told us this cannot be fixed:

    The list is generated by a wordpress function. The links appear correct. It's just not finding any stories in some sub-categories at the links it (wordpress) generates. I don't know what I can do about that.

    Is this true? We'd really like it to work. Thanks for any assistance.

  2. Andrew Charlton
    Member
    Posted 3 years ago #

    There is a "hide_empty" parameter for the wp_list_categories template function, setting it to 0 will show categories even if they don't have any posts assigned to them.

  3. ziprz
    Member
    Posted 3 years ago #

    The thing is...those subcategories DO have postings in them, yet the postings don't show up.

  4. Andrew Charlton
    Member
    Posted 3 years ago #

    Can you paste in the exact code your template is using?

  5. ziprz
    Member
    Posted 3 years ago #

    Here's what is being called in the sidebar to pull the Category links:

    <?php
    			if(  $_REQUEST['thispage'] != 'categories' ){
    				wp_list_categories('hierarchical=0&show_count=0&use_desc_for_title=1&title_li=<h2 class="cbb"><a href="'.  get_option('home') .'/categories">CATEGORIES</a></h2>');
    			}
    		?>

    Is this what you were looking for?

  6. Andrew Charlton
    Member
    Posted 3 years ago #

    I looked again and everything seems to be in place on the Categories page. You'll have to be really specific about what you think is going wrong.

Topic Closed

This topic has been closed to new replies.

About this Topic