WordPress.org

Ready to get started?Download WordPress

Forums

Categories and Custom Post Types (1 post)

  1. JustinCase5454
    Member
    Posted 1 year ago #

    I have created a custom post type called events and have associated categories to it (by setting the taxonomy during register_post_type). I have the categories widget in the sidebar displaying all the categories. However when I click on a category that has custom (event) posts in it, the posts do not display. I get the "sorry no posts to display" message.

    When the page first loads, the posts do show up because I use wp_query(post_type=events). When I click a category it just says no posts, even though the category does show the total count next to it so I know the system can see the custom posts in that category.

    What am I missing? How do I get the custom posts to show per category?

Topic Closed

This topic has been closed to new replies.

About this Topic