Home › Forums › Bug Reports › Update field with wrong post id value › Reply To: Update field with wrong post id value
Not sure exactly what you are looking for.
But, yes, if you use “some_text” then ACF will create an option value using the field name and prepended with “some_text_”.
When you create an options page, the default $post_id is “options” and all fields saved on that options page will be “options_{$field_name}”
You can specify a different “post_id” value when creating an options page, for example I can create an options page and specify that the post_id is “theme_options”. ACF will save all the values in the options table prepended with “theme_options_” and when I want to get the field I can use get_field('my-field-name', 'theme_options")
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.