Forums

Filtering out Pages in Blog Archive? (1 post)

  1. Limewave
    Member
    Posted 1 year ago #

    Hi,
    I'm setting up WordPress in a CMS oriented way. My "Pages" contains facts and my "Posts" are used for Travel Blog. I use taxonomy to filter pages and post related to a certain trip, and it works perfect.

    However when I click on this taxonomy link and arrives at the "blog archive" I only want to list related "Posts" (travel blog posts) and not "Pages" (basic facts).

    I think something like this needs to be added to the archive.php:

    query_posts("'post_type' => 'post'");

    but I have so far failed to solve this. I'd be grateful for any suggestions.

    Kind regards,
    Lars

Topic Closed

This topic has been closed to new replies.

About this Topic