WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Folding Categories for WordPress 2.3] Show Empty Categories (3 posts)

  1. diesel12
    Member
    Posted 5 years ago #

    I was wondering if anybody has any ideas on how we can make the plugin show categories that are empty.... there is an argument you can use with the wp_list_categories tag, for example to hide or not hide empty categories...but can't find equivalent when I look through the plugin code..... any help is appreciated!

  2. lonewolfonline
    Member
    Posted 5 years ago #

    diesel12,

    Find the line if ($Etotalcount > 0) (around 800) and comment it out. This will show empty categories for you.

    I can add this as an option in the next release.

    Regards
    Tim

  3. diesel12
    Member
    Posted 5 years ago #

    Perfect, thanks! The reason this is helpful is because I use each category as a landing page with a list to other articles in that category, so each category is actually a page inserted into into the top of the category..... this means that while a top level category may be empty, it reallly isn't because content from another page is being included in it, even though technically, there are no posts that are assigned to the category....

Topic Closed

This topic has been closed to new replies.

About this Topic