Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
12-03-2012, 04:40 PM #1
- Join Date
- Mar 2012
- Thanked 0 Times in 0 Posts
WorPress 3.4.2: Pull Excerpt from Specific Category
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>?
$featuredPosts = new WP_Query();
while ($featuredPosts->have_posts()) : $featuredPosts->the_post(); ?>
<h2><center><?php the_title(); ?></center></h2>
<?php the_excerpt(); ?>
<?php endwhile; ?>