How to use wordpress customizer select options
-
$wp_customize->add_setting('control_meta_data', array( 'default' => 'value2', 'type' => 'option', )); $wp_customize->add_control( 'example_select_box', array( 'settings' => 'control_meta_data', 'label' => 'Hide Author Bio:', 'section' => 'meta_data', 'type' => 'select', 'choices' => array( 'value1' => 'Yes', 'value2' => 'No', ), ));
I want to use it so that i can hide/show my theme some info like Author Bio. Any help would be appreciated.
Thanks
Atiqur
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘How to use wordpress customizer select options’ is closed to new replies.