treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Wordpress Loop with specific number of posts

  • I've worked with the Wordpress loop before but in a very basic way. I've never really dove into it much. I've been playing around with it more lately on a little dummy site and I was hoping that someone might be able to help me with a few questions.

    • I want to limit the # of post to show by a certain category.
    • How can I make like an "add" show in between so many results?
    • I also want to paginate the results for when there are more than 12 posts.

    Example: I want 3 posts to show per row and I want 4 rows, so 12 post in total. But after the first six show, I want an add to show and then the last six.

    I've seen this done on multiple sites and just want to learn to use the wordpress loop more so that I can accomplish a lot more with it.