rob
rob

Reputation: 71

Wordpress multiple / exclusive posting pages

I want a site with a separate News and Blog page, ie only news posts are dispayed on news pages and non news posts on blog pages. Also archive lists, category lists, etc for each page must only display relevant posts. Seems like a common requirement, but using the WP documentation, I keep going around in circles!!! Is there a simple way to do this, without getting into multiple blogs, eg using categories.

Thanks

Upvotes: 0

Views: 260

Answers (1)

ariefbayu
ariefbayu

Reputation: 21979

That's easy.

First, you will need to create custom page template. Refer to this page to see how to create it.

Second, on that page (you can copy from your page.php/index.php, the important part is:

if (have_posts()) : while (have_posts()) : the_post();

Find that piece and add this code just right above that code:

query_posts('cat=3&paged='.get_query_var( 'paged' ));

Things to note from above query_posts snippet is:

Hope that helped.

<shamelessplug> I blogged it here (in Bahasa Indonesia, which you can easily translate using google translate). </shamelessplug>

Upvotes: 1

Related Questions