Support

Account

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")