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βre excited to announce we've released Composer support for installing ACF PRO.
— Advanced Custom Fields (@wp_acf) January 31, 2023
π #ComposerPHP fans rejoice!
β¨ Please see the release post for all the details and full instructions. https://t.co/ebEfp61nlR
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.