Meta Box
Support Forum
Support › MB Settings Page › CheckboxesResolved
Im using a checkbox on the setting page, how do I use it within the templates
I have tried using
if (isset( $settings[$preloader] ) ) { echo '<div id="preloader">';
but doesnt seem to work,
Hi,
Did you get the $settings first, like shown in the documentation?
$settings
$settings = get_option( 'option_name' ); $field_id = 'your_field_id'; if ( isset( $settings[$field_id] ) ) { echo '<div id="preloader">'; }