The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

custom post types in category page (1 post)

  1. tacki
    Posted 3 years ago #

    i made a custom post type (cover). want i wanted to do is to show only the custom post when viewing a category.

    i tried using post queries within the loop. the shortest one i tried is this:

    <?php query_posts( 'post_type=cover'); ?>

    however, what happens is that, instead of showing only the custom post in the particular category being viewed, it shows ALL custom posts.

    how can i fix this?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.