I don’t understand the question, can you please rephrase it?
Im using a select field in my options, how do i call it in the theme if im using only 2 options Yes, and No
This code will get you started:
if ( function_exists( 'get_option_tree' ) ) {
$select = get_option_tree('select');
if ( 'yes' == $select ) {
echo 'Yes';
} else if ( 'no' == $select) {
echo 'No';
} else {
echo 'Nothing';
}
}
OR
if ( function_exists( 'get_option_tree' ) ) {
echo ( $select = get_option_tree('select') == 'yes' ) ? 'Yes' : 'No';
}
If you’re not worried if OptionTree is installed then:
echo ( $select = get_option_tree('select') == 'yes' ) ? 'Yes' : 'No';
You’ll need to update the select id.