WordPress.org

Ready to get started?Download WordPress

Forums

Show one post from each Category (3 posts)

  1. qetuo
    Member
    Posted 4 years ago #

    I'm trying to create a theme that pulls the current post from 9 different Category's. this will be put on the home page and having 3 columns and 3 rows with the post image and its excerpt in each, and cant figure out how to accomplish this. can any one help?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

  3. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

    schematic:

    get_categories()
    http://codex.wordpress.org/Function_Reference/get_categories

    foreach category :
    query latest post in that category
    http://codex.wordpress.org/Template_Tags/query_posts#Category_Parameters

    (div width:33%; float:left;
    use counter variable to set third div clear:left;)

    endforeach;

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.