WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

right now our posts on the landing page are only showing 2 lines of the content. How can I get the posts to show 5 lines of the content each?

share|improve this question

You can either manually enter content into the_excerpt section or use this code in your functions.php file in your theme

function custom_excerpt_length( $length ) {
return 200;
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

Change the number 200 to the number of characters you want until it's the number of lines you're looking for.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.