Including first thumbnail in excerpt
-
on this page of my site (https://www.diveneycue.com/wordpress/) i have the code below included to display recent post titles and their excerpts.
however, i’d like to do two things:
1. edit the amount of lines included in the excerpt
2. include only the very thumbnail that’s in each posting (each posting will typically contain three or four thumbnails at the very top of the postings)
please advise how i do this. thanks!
<h2>New Diveney Cues</h2> <?php $recent = new WP_Query("cat=29&showposts=3"); while($recent->have_posts()) : $recent->the_post();?> <a href="<?php the_permalink() ?>"> <?php the_title(); ?></a> <?php the_excerpt(); ?> <?php endwhile; ?>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Including first thumbnail in excerpt’ is closed to new replies.