Hello,
How can i change default value of select option in WP-Food plug-in from All to a specific category, i change from
<?php echo esc_html__('All','wp-food'); ?>
<?php
foreach ( $terms as $term ) {
$selected ='';
if(isset($active_filter) && $active_filter == $term->slug){
$selected ='selected';
}
echo ''. wp_kses_post($term->name) .'';
echo exfd_show_child_inline($cats,$term,$count_stop,$order_cat,'');
}
?>
TO
<?php echo esc_html__('Cofee','cofee'); ?>
<?php
foreach ( $terms as $term ) {
$selected ='';
if(isset($active_filter) && $active_filter == $term->slug){
$selected ='selected';
}
echo ''. wp_kses_post($term->name) .'';
echo exfd_show_child_inline($cats,$term,$count_stop,$order_cat,'');
}
?>
Text modified, when i click an option and than first one is changing to cofee, but first of all, when page is loaded are show all products
Anyone can help, please ?