• I’ve made a custom post type with a new custom category attached to it.

    On query_posts (and similar) how could I filter the custom posts by custom category?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can display posts from specific categories by adding:
    query_posts(cat="your_category");

    your_category is the numeric code for the category itself which you can get from the admin menu. So if the category is say 17 your code would be:
    query_posts(cat=17);

    Add in query_posts(post_type="name of post type") as well as the category name or number.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Query posts on custom post type category’ is closed to new replies.