Get WordPress post_id to use in post_meta action with 1 form

16 hours ago 1
ARTICLE AD BOX

I have a fun challenge for you. The only problem is, I'm not 100% sure it's actually possible.

I'm using YOOtheme Pro with the FORM element from ZOOlanders Essentials.

I'm creating a new post via a registration form, but this post also has Advanced Custom Fields (post_meta in the database).

I can save these form values ​​in the database as post_meta, but of course, I don't have the post_id yet, since the new post is only created when the form is submitted.

How can I ensure that I know the post_id after submission and that it's automatically added to the post_meta action that is then triggered?

Read Entire Article