You do turn selective one-to-many times in choosing the posts for category. While the thing can be achieved by manually but to ease the job, using the snippet below you can show posts for category as per the way you want.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | /** * Show latest posts for category * * @return * @param object $cats * @param object $show[optional] */ function show_title_cat( $cats, $show=5 ) { global $post; $posts = query_posts('cat=' . $cats . '&showposts=' . $show ); echo "<ul>"; foreach ($posts as $post ) : setup_postdata($post); ?> <li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li> <?php endforeach; echo "</ul>"; } |
Snippet Source/Credit: undolog.com