Contents
What is WordPress Option page?
In WordPress, an admin options page is a page that the site administrator accesses to change something about his or her site. Any page listed under “Tools” or “Settings,” for example, is an admin options page.
What is ACF options page?
Overview. 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.
How to add options page to admin menu?
Adds an options page to the admin menu. Options pages are used to store global settings. These settings are not tied to a specific post, but are instead stored in the wp_options table. Once registered, your page will appear in the admin menu. You can then assign fields to your page via the “Options Page” location rule when editing a field group.
How do I get my settings to show on my options page?
To display your settings in the option’s page, you have to link the settings group id to the options page using settings_fields function. Then using get_option, you can get the value of the settings. Remember to format the fields and text on your options page. Your resulting options page, would look something like this:
You can also add a page to the menu from the Site Pages list. Select Pages from the left-hand menu, select the page you want to add, and then click either next to the page in the list or in the top navigation bar. Click Add to navigation. When finished customizing the navigation, click Save or, to discard changes, click Cancel.
How to create an options page in WordPress?
In an options page, this id will be used to display the fields. An options page will be used to display all your settings. This page will be added as a sub-menu to the Settings menu. myplugin_options_page will be the function that will be called, when this page is displayed.