Home › Forums › Front-end Issues › Saving a dynamic value from a front-end text field › Reply To: Saving a dynamic value from a front-end text field
In this case, you need to use acf_form() to show the front end form. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/create-a-front-end-form/.
But because you want to show the field from a user, then you need to pass the
“post_id” with a different format. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/how-to-get-values-from-a-user/.
So it should be like this:
acf_form(array( 'post_id' => 'user_'.99, ));
Where 99 is the user ID.
I hope this helps 🙂
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!
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp— Advanced Custom Fields (@wp_acf) January 24, 2023
© 2023 Advanced Custom Fields.