Support

Account

Home Forums ACF PRO Loading the Exact data on an Options Page and a Specific Page

Helping

Loading the Exact data on an Options Page and a Specific Page

  • We have created a field group and associated it with an options page. We would like to display those fields AND their values on a specific page in WordPress. When we edit the “Members Dashboard” page it displays the fields but doesn’t display the values. Is there a way to get that data in both places?

  • Because the options are saved as options and the fields on the page are saved in post meta for that page.

    If you want the options to be eitiable on both the page and the options page then you can set the “post_id” argument when creating the options page to the post ID of the page. This will cause all options saved on that options page to be saved to the post_meta for that post ID instead of in options. Changing the post ID for options page after the options are save will cause ACF to ignore that previously saved values.

    Usually, when you create an options page it is because you want to edit the values separability from a page.

    A field groups field values are unique to the place where they are edited… a page, a post, a user, an options page.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.