WordPress.org

Ready to get started?Download WordPress

Forums

1.01 showing *all* category titles, even empty one (7 posts)

  1. tcervo
    Member
    Posted 10 years ago #

    I just upgraded a test blog from 1.0 to the 1.01 release candidate. The upgrade went fine, but now under "Categories" on the default template (I haven't changed a thing), it lists every possible category, even though there's only one post in one category...
    The default template is using <?php list_cats(0, 'All', 'name'); ?>

  2. Nick Momrik
    Member
    Posted 10 years ago #

    The default value for $hide_empty is to hide them and this is not working (even when passed to the function). I compared the code for list_cats in 1.0 to 1.0.1 RC1 and there have been a lot of modifications to this function.

  3. Anonymous
    Unregistered
    Posted 10 years ago #

    Also, it's not showing the entry count for each category... at least for me.

  4. Nick Momrik
    Member
    Posted 10 years ago #

    @Anonymous
    That's not turned on be default. Did you pass it the correct value in the function call?

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    Yes, yes I did.

  6. Jason
    Member
    Posted 10 years ago #

    This is a bug (empty cats showing, no entry count, no last post date), and I'm about to submit the fix for it.

  7. NuclearMoose
    Member
    Posted 10 years ago #

    Would some kind soul be so generous as to add this to the Wiki in the BUG section and also indicate that the fix will soon be commited?
    Thanks!
    Craig.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.