How the excerpts are chosen in MailPoet
This article refers to MailPoet 2
If you're looking for MailPoet 3 articles, please go to MailPoet 3 Knowledge Base
You can select to insert full posts or excerpts in the visual editor.
This is option is available in 2 places. When you insert posts:
Or when you insert latest posts for auto newsletters (starting in version 2.0):
Which excerpt does MailPoet prioritize?
1. manual excerpt, which is an extra field in your post's page:
2. The more tag, which is you the user select when writing a post:
3. The first 60 words, if none of the two above are set.
How to increase this number of words? We offer the filter " mailpoet_excerpt_length".
These are samples. Select one of them and paste into your [current-theme]/functions.php.
/** * An example of using the filter: mpoet_excerpt_length, in which we are increasing 40 additional words * @param int $number_of_words * @return int */ function mailpoet_excerpt_length1($number_of_words) { return $number_of_words + 40; } add_filter('mpoet_excerpt_length','mailpoet_excerpt_length1',99,2); /** * An example of using the filter: mpoet_excerpt_length, in which we are increasing to 100 words * @param int $number_of_words * @return int */ function mailpoet_excerpt_length2() { return 100; } add_filter('mpoet_excerpt_length','mailpoet_excerpt_length2',99);