Limit of words in slider

  • leirza

    #3188

    Short question:

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

    Mod

    Kenneth John Odle

    #23784

    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:

    http://codex.wordpress.org/Function_Reference/the_excerpt

    Anonymous

    #23785

    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?

    Anonymous

    #23786

    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.

Do NOT follow this link or you will be banned from the site!