Support » Fixing WordPress » Show categories by default

  • Resolved splanters



    On my site I have a journal page – which is basically just being used to show all the posts. I’ve noticed that the categories do not show by default and I would like them to. I read this article in the codex:

    And I just want to make sure I’m understanding this correctly. If I want the categories to show by default, I need to change the tag <?php wp_list_cats('optioncount=1&exclude=' . $sidebar_cat_id); ?> – but I’m a little confused as to what I need to change to… If I understood the article correctly, the optioncount needs to be “1” which sets it to true?

    I’m having a little difficulty comprehending (medication will do that to ya) Any help is much appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Show by default? What do you mean? On your entries or in an archive list? optioncount just gives a count of how may entries are in that particular category. A value of 1 is true, so it should be showing those numbers. I don’t know about your exclude value, though. I’m not sure what that is and what you’re trying to do with it.

    Well, I should have explained in a little more detail… As it stands now, by default if you do not have a post in a certain category, that particular category isn’t displayed underneath “Categories” – and I would like to change that so it does… I don’t know if I clarified that any better or not. Make any sense?

    thanks for your help tsguitar

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show categories by default’ is closed to new replies.