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

Include post title in readmore link?

If the following code is in-fact the code that is controlling your read more link then you perhaps the following may work; if ($show_more_tag) { global $post; $excerpt = $excerpt . ‘ <a class=”more-link” href=”‘ . $perma_link . ‘”>’ . get_the_title($post->ID) . ‘ </a>’; } I’ve declared global $post; again, just in case the above … Read more

Custom Excerpts Per Page

Here’s a solution that should do what you want (per your questions in comments and chat): Functions.php function wpse102641_custom_excerpt_length( $length ) { // assuming your category is called “Stories” if ( is_category( ‘Stories’ ) ) { return 50; } // return default length return $length; } add_filter( ‘excerpt_length’, ‘wpse102641_custom_excerpt_length’, 999 ); References Codex: is_category()

Hide specific content from excerpts

Ok, I’ve found the answer myself through a lot of Googling 🙂 If anyone else is struggling, this pastebin provides a solid solution for stripping out headings from the excerpts. The solution was provided by Michael at the WordPress Support Forum.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)