Display Older Posts at Random in a MailPoet Newsletter
This code snippet will generate a shortcode [custom:mp-random-posts] that you can add to your newsletter in MailPoet to show a list of (five in this case) posts older than one year. Every subscriber will receive a unique list of articles. Of course, you can modify the date_query or posts_per_page values in the $args variable. Feel…