• Resolved Robertlg39

    (@robertlg39)


    Hello,

    I’ve created parent categories that have no posts in them. The sub-categories of these parents have posts.

    I want to show the parent categories in the main navigation bar and have the sub-categories show as a drop down.

    How do I get the empty parent categories to show? I’ve gone into the “Category-template.php” and changed, in the wp_list…..section the “hide empty” from 1 to 0 – which had no effect.

    I’ve also tried the php code widget – with this code:

    <?php wp_list_categories(‘show_count=1&hide_empty=0’); ?>

    – but I can’t get that to work either – I’m not sure where to even put it so I tried putting it just about everywhere 🙂

    Both of those I’ve find in this forum…..can anybody help me out with this?

    Thank you!

    Rob

Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Show empty categories’ is closed to new replies.