Showing single most recent post excerpt
I’ve been searching for hours now with no luck so I’d thought I’d post this as a question.
1) Is there a way for me to show an excerpt of the single most recent post on a WP page? When you click the page, I only want it to show an excerpt of the most recent post.
2) Is there a way to limit the number of characters shown in the excerpt mentioned in #1?
I saw this in the tonus theme in the sidebar code and wonder if I can adapt it for the page code.
<h2><?php _e(‘recent posts’); ?></h2>
<?php query_posts(“cat=-7&showposts=5”); // exclude the asides category and get the latest 5 posts ?>
- ” title=”<?php the_title(); ?>”><?php the_title(); ?>
<?php while (have_posts()) : the_post(); ?>
<?php endwhile; ?>
Much thanks for any help or suggestions offered.
- The topic ‘Showing single most recent post excerpt’ is closed to new replies.