Excerpt length: get 2 paragraphs
I have modified the earlier solution to your needs. You need to change following line $wpse0001_excerpt = substr( $wpse0001_excerpt, 0, strpos( $wpse0001_excerpt, ‘</p>’ ) + 4 ); to this $wpse0001_excerpt = explode(‘</p>’, $wpse0001_excerpt, 3); // unset the rest of the contents if(isset($wpse0001_excerpt[3])) unset($wpse0001_excerpt[3]); // append </p> to the end of last paragraph if(isset($wpse0001_excerpt[2])) $wpse0001_excerpt[1] .= … Read more