You Need to use ACF Options Page plugin as well.
This Plugin has been deleted from the repository. Now you can use the function without the plugin.
The options page feature provides a set of functions to add extra admin pages and all data saved on an options page is global.
Sea the plugin overview
After installing plugin you have to add the following to your functions.php
if( function_exists('acf_add_options_page') ) {
acf_add_options_page();
}
and the “Options” label will be visible in your admin area.
then you just need to create acf fields with the rule like 'If Options Page is equal to Options'
Finally to display the field:
echo get_field('phone_number', 'option');
Related Posts:
- Unable to check if plugin is active
- How to get current post ID in Contact Form 7 wpcf7_before_send_mail hook action
- Using Advanced Custom Fields with WordPress and Lightbox
- How to store ACF custom fields data in a custom table
- Generate Advanced Custom Fields box in custom admin menu page
- Edit Imported advanced Custom Fields from wordpress Dashboard
- Visual Composer vs. Advanced Custom Fields [closed]
- ACF for audio url in wordpress audio shortcode
- Custom field in TWIG template – Advanced custom fields plugin
- Advanced Custom Fields query
- How do I add advanced custom fields / meta fields to Elasticsearch? [closed]
- How to create Repeater fields using Advanced Custom Fields?
- Loop with array of posts using ‘Advanced Custom Fields’ plugin [closed]
- Advanced Custom Fields/User Role Editor – how to hide ACF for certain users?
- Last modified field for user profile?
- WP_Query ordering numbers as letters
- Get post by ASC from custome field DATE picker
- Getting value from Advanced Custom Fields [closed]
- How can you include a theme template file from within a plugin (i.e. WooCommerce’s Shop page)?
- Inserting HTML tag with ACF into shortcode
- Advanced Custom Fields plugin – get text from editor field and save it in a variable
- Pull out Advanced Custom Fields in Related post plugin
- Using a post-signup hook to get user details
- Matching Chapters to a Custom posts [closed]
- Advanced Custom Fields displaying on tag pages
- Custom Fields with Pods not being translated
- is there a way to link one of the field in ACF field group, to a field in a media attachment page? [closed]
- How to remove the inline styles from the content of a WYSIWYG editor field at the time of saving the post?
- add custom filters to the event calendar plugin programatically to frontend [closed]
- Can you use another Profile Builder shortcodes through advanced custom fields
- dirname( __FILE__) returning wrong directory inside plugin
- ACF: post query, hide duplicate values [closed]
- Redirect to another page using contact form 7? [closed]
- Paid Membership Pro with ACF [closed]
- ACF only showing up in Homepage but doesn’t appears in all pages
- Advanced Custom Fields – Disable Users to Edit Custom Fields
- Using ACF default value to autoincrement a number field
- URLs Added to ACF Repeater Field are not working
- Advanced Custom Fields – Get value in other plugin file [closed]
- Slashes stripped in ACF
- Remove Advanced Custom Fields plugin for client?
- Adding class to last list item? Not WP generated
- Keeping and updating ACF and ACF Pro at the same time
- How do we update a custom file upload field with the Advanced Custom Field plugin?
- Advanced Custom Fields (acf) – Filter Relationship by Taxonomies not Post Type
- ACF – How to set the menu order for the relationship field
- Conditional custom redirect
- Preview with Custom Post Type Not Working
- How to display a number of posts based on a Advanced Custom Field (ACF)
- Translation to ACF relationship field
- How to get the get the select values created by ACF plugin in wordpress
- Advanced custom fields and Slideshow gallery desn’t work together? [closed]
- Advanced Custom Fields Plugin – Images not displaying
- How to create repeater field manually, without plugin (ACF Pro)?
- How to validate custom fields in Quick edit/bulk edit?
- What snippet do I need to type to show my ACF field show up on my theme?
- Replace the_content with ACF Flexible Content via function
- acf backend error handling
- Setting Author on CPT
- Can’t load the the canges of field groups [duplicate]
- Multisite – Cloning CPT pages + content (including ACF Flexible Content) from site to site
- ACF checkbox return format based on page
- custom fields not displaying on wordpress site
- ACF Fields are not showing up on Homepage
- Why Custom fields description is not working WordPress Version 5.4.2?
- Images are broken in Wysiwyg Editor – ACF backend
- make p tag collapsed after 3 rows
- How do I change the functionality of an image slider which is part of ACF?
- Change the color of ACF Subtitle output background
- Will downloading a page builder plugin delete my existing data?
- Add Custom Field to Post Pages via Plugin
- Returning incorrect $post->ID after installing plugin
- ACF Query result in a new td (echo)
- Get only selected custom taxonomy
- ACF Taxonomy search on backend (Relationship field)
- Get a Taxonomy values in an array
- Else If statement for ACF [closed]
- plugin_dir_url(__FILE__) searches parent theme in ACF extension
- How to use categories in the URL with Advanced Custom Fields?
- Advanced Custom Field User Help URL
- Define constant for one plugin in mu-plugin
- Hide/Show panel not showing – ACF
- Pulling Advanced Custom Fields from other pages
- ACF: Hide a div or template section when a custom field (in a field group) is empty
- Custom time field won’t sort regardless of format
- How ACF Advanced Custom Field works with Woocommerce Single Product [closed]
- ACF Taxonomy Object term Null [closed]
- Update acf field in woocommerce orders
- True/False ACF field returning null by default even if default value is true
- Sort posts by Date (DESC) and by ACF: active_inactive (ASC)
- ACF prugin for WooCommerce Shop Page
- Using ACF to allow user to add and edit multiple saved forms
- Making plugin unique to not conflict with plugins with the same name
- How to get posts by content?
- How can I create a plugin installation link?
- Is there a plugin for uploading files such as PDF files?
- how to convert XML from URL to HTML
- Using multi-dimensional array with filter
- How change menu for each user in plugin?
- Any plugin installation and update overwrite current theme