• Resolved fredysj

    (@fredysj)


    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:

    1. Is this the correct way to check the category slug on Post is Saved?
    2. 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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Riza Prihananto

    (@rizaprihananto)

    Hi @fredysj ,

    Thanks for using PublishPress.
    It should be possible to implement the workflow as follows and it should be able to trigger both conditions.
    https://prnt.sc/ZzqGnKgptK68

    If it still does not work, feel free to share the screen capture of the workflow you created.

    Plugin Support Riza Prihananto

    (@rizaprihananto)

    Hi @fredysj ,

    Thank you for using PublishPress

    We haven’t heard back from you in 2 weeks. Let me mark this issue as resolved. No worries, you can always create a new one if you would like to continue the discussion.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.