Print Value In Header Sitewide from one metabox?
-
Hey
Awesome plugin ??
No issues with this, and have managed to get the value inputted onto a particular page printing in the header.php no problems.
My question, and requirement, would be that my client would input their phone number and email on one page only, such as the homepage, and it would apple that value sitewide. Currently they would have to edit every page’s Meta Boxes in order for a value to be displayed on any page other than the home page.
In a nutshell, rwmb_get_field( ‘rw_[name]’ ); doesn’t seem to return any value unless there is a value in that CURRENT page’s Meta Box? Can you remove the metaboxes from the other pages and take the value from just the homepage Meta Boxes to use sitewide?
Many thanks ??
- The topic ‘Print Value In Header Sitewide from one metabox?’ is closed to new replies.