Filtering out Pages in Blog Archive?
-
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
- The topic ‘Filtering out Pages in Blog Archive?’ is closed to new replies.