WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a template that pulls three posts query_posts() loop. Two of the posts and are truncated to 10 words like I have it set in a filter. The third decided to ignore the filter and is spitting out 33 words. I can't see a difference between the posts. Does anybody know why this would happen?

while (have_posts()) : the_post();
  $img = get_post_meta($post->ID, 'Featured Thumbnail', true);
  <div style="width:237px; float:left; margin-right:20px;" <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  <div class="entry">
    <img style="margin-bottom:10px;" src="<?php echo $img; ?>"/><br />
    <div style="margin-bottom:5px;">
      <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title('<h3>', '</h3>'); ?></a></div>
      <?php the_excerpt(); ?>
  <?php endwhile; ?>
share|improve this question
up vote 0 down vote accepted

Does that post have an excerpt manually entered? the filter only works on excerpts when they're pulled from the post content.

share|improve this answer
I've been trying to find the place to add excerpts for posts and I don't see it. – Clutch Apr 22 '11 at 18:24
If the excerpt field isn't visible when editing a post, click the "Screen Options" tab in the upper right corner and check the Excerpt box. – Milo Apr 22 '11 at 18:33
Had to fix my screen options drop down because of a bad plugin (Post Template). Now I see the excerpt. – Clutch Apr 25 '11 at 16:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.