This is the most basic of basic index.php to do this and pull it into the loop.
Code:
<?php get_header(); ?> <div id="content"> <?php // array of category IDs $categories = array(4, 5, 6); foreach ($categories as $cat) : $post = false; $post = get_posts('cat='.$cat.'&posts_per_page=1'); if($post) : $post = $post[0]; setup_postdata($post); get_template_part('content',get_post_format()); ?> <?php endif; ?> <?php endforeach; ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
I am so basic at php that I am struggling to know where to take this code and insert it.
I know it's not a ton but I would be willing to donate $10 to anyone who can help me get this put where it needs to go.
Thanks!
Dani