WordPress.org

Ready to get started?Download WordPress

Forums

Categories with custom post types appear on blog pages (2 posts)

  1. Peter Wooster
    Member
    Posted 2 years ago #

    I've added a 'products' custom post type and a category that is used on posts of that type. The blog page categories widget lists the category even though there are no normal blog posts in that category. When you click on the category you get the "Nothing found" post.

    Is there a simple way to prevent such categories from appearing in the widget? I know can filter them out using query_posts, but I need to know the category ids for that. I just want categories with no normal posts to not display.

    Thanks/peter

  2. Peter Wooster
    Member
    Posted 2 years ago #

    I have file a bug report for this issue http://core.trac.wordpress.org/ticket/21396, if anyone knows a simple workaround please let me know.

    Thanks/Peter

Topic Closed

This topic has been closed to new replies.

About this Topic