WordPress Options Pages — Site-Wide Custom Fields
Options pages are how you store site-wide custom fields in WordPress — the kind of data that doesn’t belong to any specific post. Your company name, global contact info, social media URLs, default images, feature flags, brand colors. Field Forge’s options pages are a Pro feature. Their values are accessible via get_field('field_name', 'options'), and the ACF function acf_add_options_page() registers one too.
What options pages are for
Not every piece of custom field data belongs on a post. Some data is truly site-wide:
- Company infoname, address, phone, email, VAT number
- Social media URLsFacebook, Instagram, Twitter/X, LinkedIn, YouTube
- Global CTAs“Subscribe to newsletter,” “Book a call,” “Get a quote” buttons used across templates
- Default imagesfallback featured image, default Open Graph image, 404 page hero
- Feature flags“show newsletter popup,” “enable dark mode toggle”
- Brand contenttaglines, mission statement, about blurb
- Footer contentcopyright, legal links, support info
Without options pages, you’d store this data in WordPress options (get_option('company_name')) which means raw strings with no admin UI and no type safety. With options pages, you get a proper custom field interface and typed values.
Registering an options page
There are three ways to get an options page (all need the Pro add-on):
- In the admin, under Field Forge > Options Pages
- With one function call in your theme’s
functions.phpor in a plugin (below) - From a field group: a published field group with the location rule Options Page is equal to a slug that no page uses yet gets an options page with that slug, titled like the group
The function takes the arguments page_title, menu_title, menu_slug, capability (default manage_options), parent_slug, icon_url and position:
if ( function_exists( 'fieldforge_add_options_page' ) ) {
fieldforge_add_options_page( array(
'page_title' => 'Site Settings',
'menu_title' => 'Site Settings',
'menu_slug' => 'site-settings',
'capability' => 'manage_options',
'icon_url' => 'dashicons-admin-generic',
'position' => 80,
) );
}
A new menu item appears in the WordPress admin. When you click it, you see an edit screen where Field Forge renders the custom fields assigned to this options page via location rules.
Sub-pages
To put a page under another one, pass the slug of the parent as parent_slug. There is no separate sub-page function in Field Forge; the ACF function acf_add_options_sub_page() calls the same one:
fieldforge_add_options_page( array(
'page_title' => 'Header Settings',
'menu_title' => 'Header',
'menu_slug' => 'header-settings',
'parent_slug' => 'site-settings',
) );
fieldforge_add_options_page( array(
'page_title' => 'Footer Settings',
'menu_title' => 'Footer',
'menu_slug' => 'footer-settings',
'parent_slug' => 'site-settings',
) );
The sub-pages appear nested under “Site Settings” in the admin menu.
Assigning field groups to options pages
After registering an options page, create a field group in Field Forge’s visual builder and set the location rules:
Location Rules:
Options Page is equal to "site-settings"
Any fields in this group appear on the Site Settings options page. Build as many field groups as you want per options page, split logically (e.g., “Company Info,” “Social Profiles,” “Footer Content”).
Template code
Access options page values with the same get_field() function you use for post meta, but pass 'options' as the second argument:
// ACF-compatible syntax
$company_name = get_field('company_name', 'options');
$company_phone = get_field('phone', 'options');
$facebook_url = get_field('facebook_url', 'options');
// Both 'options' and 'option' pseudo-IDs work
$logo = get_field('site_logo', 'option'); // Same result
In templates:
<footer class="site-footer">
<p><?php echo esc_html(get_field('company_name', 'options')); ?></p>
<address>
<?php echo esc_html(get_field('address', 'options')); ?><br>
<?php echo esc_html(get_field('phone', 'options')); ?>
</address>
<nav class="social">
<?php if ($fb = get_field('facebook_url', 'options')) : ?>
<a href="<?php echo esc_url($fb); ?>">Facebook</a>
<?php endif; ?>
</nav>
</footer>
The same syntax works on ACF, SCF, and Field Forge sites. Code portability across the three plugins is intentional — if you ever need to switch back or forward between them, your theme doesn’t break.
Storage
Options page values are stored in a dedicated table: wp_fieldforge_options. Separate from post field values, separate from WordPress’s native wp_options table.
Why a separate table:
- Clean separation: options pages, post fields and WordPress core options are different things
- Isolation: other plugins writing to
wp_optionsdo not touch Field Forge options data
Multiple options pages
You can register as many options pages as your site needs:
// Site-wide branding
fieldforge_add_options_page([
'page_title' => 'Brand Settings',
'menu_slug' => 'brand-settings',
]);
// Marketing configuration
fieldforge_add_options_page([
'page_title' => 'Marketing',
'menu_slug' => 'marketing',
]);
// Developer / advanced
fieldforge_add_options_page([
'page_title' => 'Developer Settings',
'menu_slug' => 'dev-settings',
'capability' => 'manage_options', // admin-only
]);
Each options page has its own field groups, own capability requirements, and own menu placement.
Migrating from ACF options pages
The ACF migration tool imports field groups, including their Options Page location rules. With Field Forge Pro (license active) it also creates the options pages that ACF has, the ones made in ACF 6.2 or newer and the ones registered in code while ACF is active, and the value import copies their values for regular, Group and Repeater fields into Field Forge’s own table (not for a page that has a post ID of its own in ACF). A page that already exists in Field Forge is left as it is, and a value that Field Forge already holds is kept. Without Pro the tool creates no options page and copies no values. After the import:
- Check the options pages in the import log and under Field Forge > Options Pages. If one is missing, register it, under Field Forge > Options Pages or with
fieldforge_add_options_page(), using the same slug as the ACFmenu_slugso the imported field groups attach to it - Enter again the values that were not copied (those of Flexible Content and Clone fields, those of a page that has a post ID of its own in ACF, and all of them when Pro was not active during the import): Field Forge keeps them in its own table, not in
wp_options - Template code using
get_field('name', 'options')keeps working via the ACF compatibility layer
REST API access
Options page values are available on Field Forge’s REST API:
GET /wp-json/fieldforge/v1/options/{page-slug}
It returns an object with the values of the fields in the field groups assigned to that options page. The request must be made by a logged in user who can manage_options (an administrator), so it is not a public endpoint for a JavaScript frontend. Options pages have no WPGraphQL types.
Ready to add options pages?
Options pages are included in every paid plan.