Excerpt – add the last few words of posts to the […]
You can achieve this by using the_excerpt filter. You can read further on the codex. Just paste this code in functions.php and set the value of $i = no of words from the end you want. add_filter(‘the_excerpt’,’my_excerpt’); function my_excerpt(){ global $post; $excerpt=get_the_excerpt(); $content = get_the_content(); //gets the whole content $content =strip_tags($content) ; //strips html tags … Read more