• Resolved kristofferwebboteket

    (@kristofferwebboteket)


    Hello!

    I’ve created a ACF Custom Post Type which I want to automatically delete 90 days after the post is published (after being submitted to pending review). Additionally, I would like to add 90 days to that delay if the post is updated.

    So far I’ve done this by enabling “Future Action” to all new post (delete post after 90 days) and adding following workflow: Post is updated -> Scheduled delay ({{onPostUpdate1.postBefore.future.date}} with +90 days offset) -> delete post).

    I’ve encountered two issues developing this feature with PublicPress Future:

    • In scheduled action two actions appears for the same post, one future action for the original 90 days and one for the workflow which is 180 days.
    • It seems as only one action by the workflow can be scheduled at once. When updating a post, a scheduled action of that post appears in “Scheduled Actions”, but when updating another post the previous action for that post disappears as a scheduled action for the current post appears.

    By disabling the “Future Action” and only going with the workflow: Post is updated -> Scheduled delay (When the step is activated with +90 days offset) -> delete post) the first issue is resolved. The feature where 90 days is added won’t work but if this would be the only possible way, Im fine with that. But I still don’t get why only one action is able to be scheduled at once using the workflow feature.

    Grateful for all help I can get!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    Hi @kristofferwebboteket

    Thanks for using our plugin.

    Can I confirm with you that you’ve enabled this option?

    Thread Starter kristofferwebboteket

    (@kristofferwebboteket)

    Hi @rizaardiyanto!

    Thanks for reaching out. That option didn’t appear at first but now when investigating further I found it by activating Advanced Settings:

    Thanks for helping me to resolve this issue. Also, I wonder if there would be a way to add 90 days to the delay every time it’s triggered. The closest I’ve gotten is by enabling a future action for all new posts and set the following date source:

    Unfortunately this doesn’t meet my desire as the Future Action doesn’t dissappear as the desired workflow starts and also further additions to the delay would add to the future action and not the workflow.

    Thank you in advance!

    Thread Starter kristofferwebboteket

    (@kristofferwebboteket)

    Hi again,

    I am seeing duplicate scheduled actions as the workflow activates and I can’t get the UNIQUE TASK IDENTIFIER to work. I only want one workflow (scheduled action) per post, so I recon the post ID should fit good as the identifier and therefore I use {{onPostUpdate2.postAfter.id}}. My goal is to delete the old scheduled action as the post updates (which is my trigger).

    Plugin Author Steve Burge

    (@stevejburge)

    Hi @kristofferwebboteket

    “add 90 days to the delay every time it’s triggered.” Yes, this is possible with the Pro version of the plugin. You can see the “Repeating Action” option in the screenshot above.

    Plugin Author Steve Burge

    (@stevejburge)

    Thanks for using PublishPress. We’ve not heard from you in 10 days so are closing this discussion for now. Please post back if this remains an issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.