WordPress.org

Forums

Fruitful
[resolved] Limit Excerpt Length (2 posts)

  1. maven1333
    Member
    Posted 1 year ago #

    How to limit excerpt length of the posts? cant find the normal functions or the function that the theme uses.

    Thank you

  2. Fruitful Code
    Member
    Theme Author

    Posted 1 year ago #

    By default it set 150 but you can add custom function

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

    Where is return 20 - it's number of symbols

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic