Limit of words in slider

  • leirza


    Short question:

    How to change/ turn on a limit after for ex. 20 words in slider – (then see “read more…”)?


    Kenneth John Odle


    You can manually insert the “more” tag anywhere in your post to limit the excerpt length.

    To do this globablly, you will need to use a child theme. Add this to your child theme’s functions file:

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

    Change “20” to however many words you would like your excerpt to be.

    Read this for more information:



    Working good for Category in Posts, but still doesn’t work for build slider in Home Page.

    question is:

    How to cut post reviews (words) inside slider?



    Working fine with installed plugin: Advanced Excerpt.

Viewing 4 posts - 1 through 4 (of 4 total)

  • You must be logged in to reply to this topic.