How to make the excerpt_more filter apply to the actual post excerpt?

I’m going to assume that you’re calling get_blog_excerpt() in your template somewhere? If so, what happens if you simply call the_excerpt(), and then pull the two add_filter() calls out of the container function? i.e. functions.php would just look like: function ce4_excerpt_length($length) { return 150; } add_filter(‘excerpt_length’, ‘ce4_excerpt_length’); function ce4_excerpt_more($more) { global $post; return ‘…<a href=”‘. … Read more

Excerpts automatically remove paragraph space

Looks like my other answer wasn’t working, so I looked into it and found this: http://aaronrussell.co.uk/legacy/improving-wordpress-the_excerpt/ That article should give you all you need to keep the <p> tags in there.

Disabling automatic teasers

Try using $post->post_excerpt instead: // globalize $post, just in case global $post; // find out if the post has a defined excerpt $data = $post->post_excerpt; // If so, output something if ($data) echo “<div class=”excerpt”>$data</div>”; This method will bypass the auto-excerpt generation inherent in get_the_excerpt(). EDIT By popular demand, the same code, using has_excerpt(): // … Read more

Show Sub pages excerpt+thumbnail

I recently wrote code that I just put into a new page template that does exactly this. The all you do is assign the parent pages that specific template (or any page you wish to have this functionality on) and then it’ll list it’s child pages with their featured images as thumbs. Getting a plugin … Read more

the_excerpt(); tag not working

Thank you for all your help, especially @byronyasgur for your last suggestion. It helped me fix it. I was using markdown as the input format for the content, and the first line was HTML comment which was not followed by a blank line. Adding a blank line fixed it. Summary: The absence of this line … Read more

Mass update excerpt

Issue 1: creating the excerpt data This should be fairly easy to do directly with SQL. UPDATE wp_posts AS post INNER JOIN wp_posts AS attachment ON attachment.post_type=”attachment” AND post.ID = attachment.post_parent SET post.post_excerpt = CONCAT(‘<img src=”‘, attachment.guid,'” />’) WHERE post.post_excerpt=””; This is obviously a “one-time fix” that implies you have access to the database. If … Read more