biggupp Posted December 3, 2012 Share Posted December 3, 2012 http://www.ahy4life.com/update_20121008/promos.php right column, center section How do I mod/replace the code below to pull an excerpt from a specific category so that the title populates the top and the excerpt populates the bottom as in <http://www.ahy4life.com/events.php>? " <?php $featuredPosts = new WP_Query(); $featuredPosts->query('showposts=5&cat=8'); while ($featuredPosts->have_posts()) : $featuredPosts->the_post(); ?> <h2><center><?php the_title(); ?></center></h2> <?php the_excerpt(); ?> <?php endwhile; ?> " Quote Link to comment https://forums.phpfreaks.com/topic/271534-worpress-342-how-to-pull-an-excerpt-from-a-category/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.