New wordpress posts

twisted1919

Administrator
Staff member
Actually there is. See https://kb.mailwizz.com/articles/embed-xml-rss-feeds-into-your-campaign/
Check the following params:

days-backinteger – the number of days to look back for posts. Optional.
no-item-actionstring – what action to take when no items are found in the feed. Valid values: postpone-campaign(postpones the campaign till next day). Optional.
send-only-unique-items – string – if we should only send unique items. if no items are found, then no-item-action is applied. Valid values: (yes or no). Optional.
 

tfb

New Member
Actually there is. See https://kb.mailwizz.com/articles/embed-xml-rss-feeds-into-your-campaign/
Check the following params:

days-backinteger – the number of days to look back for posts. Optional.
no-item-actionstring – what action to take when no items are found in the feed. Valid values: postpone-campaign(postpones the campaign till next day). Optional.
send-only-unique-items – string – if we should only send unique items. if no items are found, then no-item-action is applied. Valid values: (yes or no). Optional.
Because sending it out whenever there is a new post in the feed is such a common use case, I think the KB article should be expanded with a better explanation for how those optional parameters behave when they are set and not set, and what the default value is for each parameter.

> offset – integer – the number of items you want to skip loading. Optional.

What's the default value? 0? If I want to send the latest, should I omit this parameter?

> days-back – integer – the number of days to look back for posts. Optional.

What's the default value? Unlimited, which means if this is not set, the feed will return some items and that will make no-item-action moot? Should this be set to the frequency of the recurring campaign if I want the latest post since the last run? Does it also mean I should set the campaign to run no more frequently than once a day because otherwise the next run will find the same item again?

> no-item-action – string – what action to take when no items are found in the feed. Valid values: postpone-campaign(postpones the campaign till next day). Optional.

What does the campaign do when this is not set and the feed has no item within 'days-back'? Does 'postpone-campaign' postpone it literally till the next day or till the next run according to the campaign's recurring schedule?

> send-only-unique-items – string – if we should only send unique items. if no items are found, then no-item-action is applied. Valid values: (yes or no). Optional.

What's the default value for this, 'yes' or 'no'? If send-only-unique-items is set to yes but no-item-action is omitted, what does the campaign do? Does send-only-unique-items='yes' always require no-item-action='postpone-campaign'? How is an item seen as unique? By the title, the link, title + pub date, the GUID, or ...?

Again, if I want to send only the latest post, do I need:

days-back='1' no-item-action='postpone-campaign' send-only-unique-items='yes'

or

days-back='1' no-item-action='postpone-campaign'

or

no-item-action='postpone-campaign' send-only-unique-items='yes'

assuming I set the campaign to run once per day?

What if I want to run the campaign hourly and send one out as soon as it sees a new post but otherwise not send?
 
Last edited:

nadworks

Active Member
I could really use this for some of my clients.
Has there been any further development in terms of providing a more detailed setup documentation?
 
Top