Custom Shortcode in Post Notification: is it possibile to save sent post IDS?
-
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 themailpoet_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
- The topic ‘Custom Shortcode in Post Notification: is it possibile to save sent post IDS?’ is closed to new replies.