How can I shorten the length of text that shows in the post excerpts?

  • TAC


    Hello all,

    I want to try and limit the amount of text in the post excerpts that show on the home page. I tried the ‘more’ tag in the posts but nothing changed.

    I also tried a forum search but all related questions seemed to be about the slider and I am not using that.

    Thank you in advance for any help ๐Ÿ™‚



    Custom excerpt length function. (This goes in your child theme’s functions.php file)

    add_filter('excerpt_length', 'custom_excerpt_length');
    function custom_excerpt_length($length) {
    return 20; // Change this to whatever you want.

    Or try this plugin –

    or this one –



    The ‘Advanced Excerpt’ plugin worked a treat.




    Thank you Prasanna for your great reply. I tried the code but wasn’t too sure where to put it so went with the ‘Advanced Excerpt’ plugin as well and all works just as I wanted.

    Thanks again ๐Ÿ™‚

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

  • You must be logged in to reply to this topic.
Graphene Themes Forum