• Hi all,
    I need to send a weekly newsletter populated automatically with latest content published in my website, so not only Posts but also other Custom Post Types (eg. Press Releases).
    Unfortunately the Automatic Latest Content widget allows to select only one Post Type, so I created a Post Notification Newsletter and in the body of the template I put a custom shortcode. This shortcode gets the 10 latest published posts and other custom posts types and builds the html.
    My question is: is it possibile to make sure that every time a weekly newsletter has completed sending, the IDs of the posts sent in the newsletter are saved in the mailpoet_newsletter_posts table? In this way I want to avoid to sent again posts that have been already sent, and send only NEW Posts.
    In short: I want the same behaviour as described here but with my custom content….
    Is it possible? And how? Are available some Actions of Filters triggered after a newsletter is sent?
    Or is it possible to give dinamically the post IDs to the Post Notification System?
    Or, at least, to make the Automatic Latest Content widgetcan select more than one Custom Post Type?

    Thanks in advance

Viewing 1 replies (of 1 total)
  • Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there @mrbrown

    Thanks for contacting us here.

    My question is: is it possibile to make sure that every time a weekly newsletter has completed sending, the IDs of the posts sent in the newsletter are saved in the mailpoet_newsletter_posts table?

    There’s not really a way to do this out of the box, or with a simple filter or action. This will require one of two things:

    * Either a bit of custom PHP written by you for the site, to log and look for post IDs correlating to the custom post types you are sending.
    * Adding this to the feature request board for MailPoet, here: https://feedback.mailpoet.com/feature-requests

    Hopefully that helps! Have a great one!

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Shortcode in Post Notification: is it possibile to save sent post IDS?’ is closed to new replies.