Check if post already exists

0
0

Love the ease of use! The only thing I’m missing is conditional logic…how can I check if a page already exists? For example:

1.) When a new post is created (the trigger)
2.) Check if post title (or custom fields) already exists. If yes [stop] if no [continue] (the conditional logic)
3.) Create New Page with trigger Post’s content & meta (the action)

  • You must to post comments
0
1

That’s a great question! For the time being there is no easy way to search posts. Instead, you can use a workaround. Use the Execute PHP action with WordPress function get_posts(). See more: https://developer.wordpress.org/reference/functions/get_posts/

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.