Support › MB Settings Page › Getting value from Settings page is not workingResolved
I've created a settings page and assigned it a custom field using UI and I referred to the documentation to get the value on a custom template 'page-homepage.php' but it's not working.
Settings page options: https://i.imgur.com/PVOxsr4.png
Custom field options: https://i.imgur.com/yvWj5Ld.png
Custom field settings: https://i.imgur.com/hP6yZNT.png
$value = rwmb_meta( 'featured_1', ['object_type' => 'setting'], 'site-settings');
var_dump($value) returns C:\wamp64\www\sands\wp-content\themes\sands-child\page-homepage.php:13:boolean false
Nevermind, I had the "Option name" in the settings page all wrong, I changed it to "settings-page" and all worked out.