WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am building a custom wordpress theme from a clients mockup. On the homepage there are 2 sliders, and 4-5 areas for recent posts of different types. I would like to have all the content be editable in wordpress what is the best way to create a post, apply some sortof value to it (category,taxonomy,tag,custom post type), and then retrieve more than one loop on a single page or is it best to use feeds? Any suggestions greatly appreciated

share|improve this question
up vote 2 down vote accepted

You can use WP_Query in your template to select groups of posts by type, category, tag, custom taxonomy, meta field, etc., and create additional loops:

$news = new WP_Query("post_type=mynews&posts_per_page=1");
while($news->have_posts()) : $news->the_post();

$events = new WP_Query("cat=2&posts_per_page=3");
while($events->have_posts()) : $events->the_post();

// etc..

It's up to you how to best organize your content in a way that makes sense as far as how you use your taxonomies and types.

share|improve this answer

I agree with Milo. Personally, I would create custom post types (see Justin Tadlock's page for starters: http://justintadlock.com/archives/2010/04/29/custom-post-types-in-wordpress)

Then you can create different loops and queries in whatever format you're comfortable with and display content from different areas wherever you require. Alternatively if the content is very similar, you can just create different categories and instruct your client that Category X posts are for the 1st slider, Category Y posts go to the recent news, etc.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.