• Resolved gregsgraphics

    (@gregsgraphics)


    Hi. On our main press release and press coverage pages, the number of lines displayed isn’t consistent. Is there a way to control the number of lines that are shown? If you look at our press release page, for example:

    https://www.chefgorji.com/news-3/press-releases/

    In the first two entries (Nov 14 and Sep 25), it seems to run into the main part/content of the press release, where the ones after that are mostly 1 line.

    Thanks in advance, and our apologies if this issue has been already discussed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor farinspace

    (@farinspace)

    This is more of an editorial issue. At first glance it appears that the first two items are auto generated excerpts (meaning that there is no content entered in the excerpt field for the press release). The others seem like the excerpts were manually entered.

    You can also adjust core WordPress functionality for excerpts by adding the following to your functions.php file:

    
    // change the default WordPress excerpt length to 30 characters
    function custom_excerpt_length( $length ) {
      return 30;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
    

    With the above code, when there is no excerpt (manually added via the excerpt field), it will auto generate an excerpt of at max 30 characters.

    Thread Starter gregsgraphics

    (@gregsgraphics)

    I see where it is. Yep, the excerpt wasn’t filled out on the first/latest two posts. We fixed it. Thanks again for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Controlling # of lines on main press release page’ is closed to new replies.