WordPress set excerpt from first paragraph of content

This video shows how to set excerpt from first paragraph of content in wordpress.if you want to set the index page show post excerpt replaced full content,you can change the sub  content template to  excerpt template in the loop.and then add_filter to the 'wp_trim_excerpt',and using substr function get the first paragraph of the content.

Add the following code into theme file functions.php

Leave a comment