WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to show empty categories in 2.8? (4 posts)

  1. rw1
    Member
    Posted 4 years ago #

    Hello,

    How to show empty categories in default categories widget?

    Thank You.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    Don't think it's possible via the widget. Within the code, you can use wp_list_categories('hide_empty=0').

    http://codex.wordpress.org/Template_Tags/wp_list_categories

  3. rw1
    Member
    Posted 4 years ago #

    That's great, thank you very much. Change:

    'hide_empty' => 1, 'use_desc_for_title' => 1,

    to

    'hide_empty' => 0, 'use_desc_for_title' => 1,

    in:

    wp-includes/category-template.php

    thanks very much again!

  4. pixelrage
    Member
    Posted 4 years ago #

    I have tried the suggestion above and it does NOT work. Anyone know how to do this?? I absolutely must show my inactive categories in my menu and cannot figure out how to do it...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.