Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm designing a blog with wordpress as my CMS. My client would like one page on the site to have two main content areas, each with a title above and streaming posts from different categories.

So far I haven't seen any examples of this anywhere on the web. Is this possible to do? If so, whats the best approach?

share|improve this question
add comment

migrated from stackoverflow.com Aug 1 '11 at 21:03

This question came from our site for professional and enthusiast programmers.

2 Answers

See If this helps. Bill Erickson has a great tutorial on how to use multiple content areas in thesis theme. I think you should be able to replicate it with any good WP Theme.

Here is the link

share|improve this answer
add comment

This is where you want to be looking.

http://codex.wordpress.org/Class_Reference/WP_Query

I have used this method before on my site to display 1 category at the top for featured posts and then another to display the main loop.

<?php $featured = new WP_Query('category_name=Featured&showposts=1');
    while ($featured->have_posts()) : $featured->the_post();
    $do_not_duplicate = $post->ID; ?>

As you can see I selected my category and for this example I only wanted to display one post. Hope this helps.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.