This question already has an answer here:
- Make First post different from rest? 3 answers
I need to show 7 posts of a certain category.
The first needs to appear as Title / Date / Excerpt.
While the others can just be Titles of the posts.
Right now I am having trouble with getting the first post to appear different with my specific code.
Any help would be appreciated, thanks.
<?php $the_query = new WP_Query( 'showposts=7&cat=113' ); ?> <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?> <strong><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></strong> <hr size="1" color="#919191"> <?php endwhile;?>