Contents
How to make two separate forms in ACF?
This is why I said, make two separate forms in ACF with the same fields in, but with different slugs. This would be something like: This effectively allows you to keep the slug the same per options page, whilst incorporating the post-type of the page that this options page will appear in, to keep them unique.
What happens if you use the same field name on multiple pages?
All of the actual fields are just saved into the wp_options table in the database using the field name from ACF. This means if you use the same field with the same field name on multiple options pages (irrespective of the actual page slug) this will be overwritten.
How are fields added to an option page?
Fields added via options pages are all saved and loaded in via ‘option’ as opposed to page id. As such, the only way to have two options pages with unique data is to make them each have unique slugs. https://www.advancedcustomfields.com/resources/register-multiple-options-pages/
Can a page slug be included in ACF code?
As a test, I modified the ACF code to include the page slug as part of the option_name, but that causes other issues down the road. Thanks for taking a look. I would be curious to see a solution where duplicating the fields isn’t required. Sometimes post archive templates look the same, but they are custom and each require unique fields/settings.
Can a sub admin page edit an ACF field?
The options page feature provides a set of functions to add extra admin pages to edit ACF fields! Each admin page can be fully customized (see code examples below), and sub admin pages can be created too! All data saved on an options page is global. This means it is not attached to any particular post or page, but is saved in the wp_options table.
How does the options page work in ACF?
This allows the data to be displayed on any page throughout the website (good for header and footer data)! This opens in a new window. To make use of the options page feature, you will need a copy of ACF PRO (ACF v5), or the options page add-on (ACF v4)