Change post status based on category
-
Hi,
My goal is to automatically change posts that have the category term “News” to Draft 30 days after publishing.
For this, I created a new Action Workflow with:
- Trigger:
Post is Published - Post filter:
{{onPostPublish1.postBefore.type}} is 'post', and {{onPostPublish1.postAfter.terms.category.slug}} has 'news'
This works, but I noticed it only triggers when a post is first saved as Draft/Scheduled and then changed to Published.
To also trigger the workflow when a post is created and saved as Published, I added another trigger:
- Trigger:
Post is Saved - Post filter:
{{onPostSave1.post.type}} is 'post', and {{onPostSave1.update}} is null, and {{onPostSave1.post.terms.category.slug}} has 'news'.
However, with the category condition in place, the workflow does not fire. If I remove the category check, the trigger works.
Could you please let me know:
- Is this the correct way to check the category slug on
Post is Saved? - Is filtering by category on this trigger only available in the Pro version, or should this work in the free version as well?
Thank you!
- Trigger:
You must be logged in to reply to this topic.