Aggregate posts from different categories on the front page
-
Let’s say for the sake of argument I’m an absolute idiot and I’ve read the codex on conditional tags and I still am having a bit of trouble so I turn to these forums. Hypothetically, let’s say this is what I want to do:
On the front page I want to aggregate 3 posts from 3 different categories each (so 9 posts total). I want each of these contained in separate divs (but that’s not really important at this point). So, I have the loop at the top <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
What would be my next step? Everything I’ve hypothetically done up to this point has caused php errors and prevent the page from loading. Let’s say, for this example, the category IDs for each category are 1, 2 and 3. Any ideas? If you can help and you’re in NYC I’ll buy you a beer or six.
This would be for WordPress 2.9.2.
- The topic ‘Aggregate posts from different categories on the front page’ is closed to new replies.