What I wish to do is create a page to display the data of a custom post type on the frontend, so in that page all the fields should be “read only” and not editable.
I can create a page template for this purpose and display the data using HTML and PHP code. However my custom post type has multiple custom fields from different types – text, date, photos, reference to other posts, etc. Therefore it will require some coding to display and style all the information correctly (i.e. using rows, grouping fields together, etc.).
Since acf_form already renders all the fields in the right structure on the frontend, I thought there might be some way to use it (or something else) also for the purpose of displaying the data without editing it.
What I meant was to just display the data without formatting it to look like an input field.
Viewing 4 posts - 1 through 4 (of 4 total)
The topic ‘Using acf_form to display an existing custom post’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users