WordPress.org

Ready to get started?Download WordPress

Forums

breaking up the main page (3 posts)

  1. dasme
    Member
    Posted 8 years ago #

    I'm working on a site where I would have to break up the main page into 3 seperate content areas. I figured the best way to do this would be to assign categories.. that's a no brainer. I'm trying to figure out the best way to diaplay the posts in the page though...

    Would I have to create 3 seperate worpress loops displaying an article only if it matches the proper catagory? If that's the case what if I wanted to display 5 of each, how can I ensure that WP fills the third section with 5 posts from category 3 *even* if I don't post in that category regularly?

    I've attempted a few different things, each ending in failure :) So i figured that I would come talk to the masters.

    Thanks in advance for any help!

  2. Mark Jaquith
    WordPress Lead Dev
    Posted 8 years ago #

    These links should help you get started!:

    http://www.ifelse.co.uk/archives/2005/03/31/query_posts/
    http://www.ifelse.co.uk/archives/2005/04/08/query_posts-redux/

    They are just what you are looking for.

  3. dasme
    Member
    Posted 8 years ago #

    Aha! Thank you so much!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.