WordPress.org

Forums

Fruitful
[resolved] Limit Excerpt Length (2 posts)

  1. maven1333
    Member
    Posted 11 months 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 11 months 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

Reply

You must log in to post.

About this Theme

About this Topic