Forums

categories having subcategories are not displayed (5 posts)

  1. swordfish
    Member
    Posted 6 years ago #

    I am using connections theme for a blog i maintain and everything is fine untill I created subcategories for some categories. All categories which hare having subcategories are out of the scene now. Any idea why this happens and how to get rid of this?

  2. jwurster
    Member
    Posted 6 years ago #

    The function call is in your siderbar. You need to see which one of the category listing functions you are using. It is probably list_cats. You then need to look in the codex codex.wordpress.org for the list_cats function and see what option you need to change. I had the same problem. The following works for me:

    <?php list_cats(1, 'all', 'name', 'asc', '', 1, 0, 1, 1, 0, 1, 0,0,'','','','',1) ?>

  3. swordfish
    Member
    Posted 6 years ago #

    Very helpful.

    Took me more than hour to teach myself how to do that.
    Here is the code:

    <h2><?php _e('Categories:'); ?></h2>

      <?php wp_list_cats('hide_empty=0&optioncount=1&exclude=1&sort_column=name'); ?>

    Another question is,

    My structuring is like this:
    Cat A (2)
    Cat B (0)
    -Cat C (1)
    -Cat D (3)
    -Cat E (2)

    Cat B has three sub categories C, D, E. Now I want to show count 1+3+2 for Cat B, how do i do that?

  4. jwurster
    Member
    Posted 6 years ago #

    You want a grand total showing for the Parent Category. I'm not sure how to do that. Although I see two scenarios. One is that you post in the Parent Category and want this to count in the total. The second is that you don't want this to count in the total.

    Someone better than I will have to advise us how to do this.

  5. jwurster
    Member
    Posted 6 years ago #

    I just found this plugin http://txfx.net/2004/07/22/wordpress-conversational-categories/.
    It looks like it may do what you want. You could contact the plugin author and ask first.

Topic Closed

This topic has been closed to new replies.

About this Topic