Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Help me with the_excerpt()

Discussion in 'Misc WordPress Requests' started by sakur, Nov 8, 2017.

  1. sakur

    Guest

    Help me with the_excerpt(), by 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 =)

    Help me with the_excerpt()
     
    #1

Share This Page

Web Hosting