• sakur

    (@sakur)


    Good day, friends.

    I got madness with a making my formation of a short content of my article.

    The site is written on the EP using the plug-in from Adobe Muse.
    My task is make gray text shorter up to 20-25 words.
    ATM i got minimum 55 word.
    But I got no idea how to make it.

    1. First i try to add this short code to functions.php, but got no result
    ////////
    add_filter(‘excerpt_length’, ‘my_excerpt_length’);
    function my_excerpt_length($len) { return 75; }
    ////////
    and this one…
    ////////
    function excerpt_word_limit($length) {
    return 100;
    }
    add_filter(‘excerpt_length’, ‘excerpt_word_limit’);
    ////////

    2. I know about two easy way to make it, but its not i want
    2.1 First – is adding adding a custom excerpt checkbox
    2.2 Or inserting “Read More Tag” in text-controlling panel

    3. After this two ways i try to Add Custom Excerpts with Advanced Excerpt plugin.
    But as you can imagine got no result.

    Please help me !
    I hope God bless u =)

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi,

    Try this one maybe? You did not add the third parameter to the filter (priority):

    function custom_excerpt_length( $length ) {
    return 100;
    }
    add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 );

    Regards
    Louis
    https://wemanageyoursite.com/

Viewing 1 replies (of 1 total)
  • The topic ‘Help me with the_excerpt()’ is closed to new replies.