#StackBounty: #advanced-custom-fields #previews Front end form to create a custom post with preview

Bounty: 50

how can i achieve a front end form with preview option to create custom post based on the input? I want it done without any plugin. A simple example will help a lot.


This is not a ACF question but ACF is having a front end form functionality but does not have preview function.

Is it possible to get the id for form being filled so that it can be passed to

get_preview_post_link( int|WP_Post $post = null, array $query_args = array(), string $preview_link = '' ) 

It tried get the get_the_ID() but it add’s the id of page where form is placed. Also the id of the page get generated after form field is generated.


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.