Global Fields

Description

Within the PHOS framework, we have a “Global Fields” setting built out under the Settings tab on the WP dashboard. For site-wide content that doesn’t change from page to page (for example – social media links), add an ACF field group for Global Settings, then set the group rule to display on “Options Page”. Once the ACF group has been saved, click over to Settings > Global Fields to make sure your new fields are available on that page.

To display these fields in your code, use the usual PHP code to display an ACF field, but add an extra argument to specify the Options field:

<?php echo the_field('field_name', 'option'); ?>

 

MENU