php - wordpress : How to set the value of "Select Category" to a value other than 0 -


basically show drop-down of subcategories of specific category,now want if no 1 select sub category , click on search default search parent category. add this

 'show_option_all' => __( 'all manufacturers', app_td ), 

but default value "0" want change value "0" 187.any plz here want implement this

you can below;

$args = array(      'show_option_all' => __( 'all manufacturers', app_td ),     ..............     ); $str = wp_list_categories($args); // or use // $str = str_replace('value="0"', 'value="187"', $str); $str = str_replace("value='0'", "value='187'", $str); 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -