WP Job Manager has a 3 step function to create post: the first step is the form submission and when you hit the preview button the post is saved as a draft (wpjm “preview” post) and you are redirected to a preview of the post, which is the second step; from the second step you can submit the post publishing the draft or go back to the editing part. The third step is a redirect to a confirmation page.
I’ve already tried declaring the post id as new_post in the form array, but it’s not working as I need.
The front end editing is a single step process that updates the post_meta, but when I try to insert the acf form it uses the front end page id instead of the job id.
I modified the preview step inserting the acf form and it saves everything fine (I think because it call the job post inside the preview so acf knows what is the postid) but stop the php function that create the submission confirmation page.
Also if i try to edit the job in the front end because it is a one step process the preview isn’t shown so I can’t edit the acf form.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!