While retrieving the values of fields at the top level in Meta Box settings page is straightforward, we will need to write a custom function to get the values of fields inside a group.
Go to Meta Box > Settings Pages and click New Settings Page.
Give it a title of say, "Sitewide".
The Settings Page ID should already become
sitewide. We will be referring to this slug in a later step.
Go to Meta Box → Custom Fields and create fields or import this field group.
Click Sitewide in the admin menu and populate the custom fields.
To get the value of the
phone field in Bricks editor, here's the dynamic tag:
sitewide is the Option name (if present) or the Settings Page ID and
phone is the ID of the field in that settings page.
To have the phone number as a link, set the URL (External URL) to:
Let's define a custom function to get the value of a specified custom field from inside the specified group on Meta Box Settings page.
Add this in child theme's
This is a Pro members-only tutorial.
To get full access, login below or sign up for a Pro Account