• Resolved phoebe46

    (@phoebe46)


    Hi,

    I insert this code, to functions.php, and it caused 500 internal server error.

    add_filter(‘mailpoet_newsletter_post_excerpt_length’, function() {
    return 20; // # of words to display
    };

    I delete from functions.php, and solved the problem, but I don’t know how to Modify Post Excerpt Length in Mailpoet.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Sorry about that, the code in our KB was missing a ) character. It’s been corrected now:

    add_filter('mailpoet_newsletter_post_excerpt_length', function() {
      return 20; // # of words to display
    });
    Thread Starter phoebe46

    (@phoebe46)

    Hi,

    I doesn’t works for me. Caused similar error.

    Plugin Author Bruna a11n

    (@bruberries)

    Hi @phoebe46,

    I tested here and it’s working. Have you copied/pasted the new code? Make sure you’re adding it to the bottom of your functions.php file

    Thread Starter phoebe46

    (@phoebe46)

    @bruberries

    Hi,

    Sorry, it was my fault. It’s working. ?? Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Excerpt Lenght problem’ is closed to new replies.