I am trying to get all the posts in a specific category separated into 3 different sections. Each category will be in a different div. When I try doing this, WordPress lists every post in every category in each div. How can I get it so that it will only list the posts in each category? I tried to modify loop.php so that my code would look like this
//loop.php <?php if ( is_archive() || is_search() ) : <div class="category"> <p class="textYellow arrow"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'paradiso' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></p> </div> endif;
The idea is that each category will sit in a div floated left so that each div will sit next to each other. So I would have three divs, three categories and each div would only list the posts title in that category.
div 1: 4 posts div 2: 3 posts div 3: 6 posts
Each div only showing the category posts related to that section.