get_setting in for loops wordpress

function choice_a_callback( $control ) {
if ( $control->manager->get_setting(‘demo_radio_control1’)->value() == ‘a’ ) {
return true;
} else {
return false;
}
var_dump( ‘choice_a_callback’ );
}

function choice_b_callback( $control ) {
if ( $control->manager->get_setting(‘demo_radio_control1’)->value() == ‘b’ ) {
return true;
} else {
return false;
}
}
function choice_callback( $control ) {
$radio_setting = $control->manager->get_setting(‘demo_radio_control1’)->value();
$control_id = $control->id;
if ( $control_id == ‘demo_home_products_artical_slug1’ && $radio_setting == ‘a’ ) return true;
if ( $control_id == ‘home_products_artical_pdf_link1’ && $radio_setting == ‘b’ ) return true;
return false;
}

$home_product_count = get_theme_mod(‘demo_home_product_count’,’4′);

for($p = 1; $p

Read more here:: get_setting in for loops wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *