Taxonomy Chain Menu – is simple WordPress plugin with one shortcode, which allows to create taxonomies terms chain menus with any inbuilt and custom types of WordPress taxonomies. Is compatible with TABLEON – WordPress Posts Table Filterable!
Buy it separately on: pluginus.net OR Use free version: wordpress.org
Created by shortcodes: [taxonomy_chain_menu post_type=’product’ exclude=’152,84′ taxonomy=’product_cat’ target=’_blank’ label_taxonomy=’call_filter_chain1′ label_post=’call_filter_chain1-post’ chain_id=’chain1′ connect_table=’tt1′ button_title=’call_filter_chain1-btn’ label_before=’Select products you want to get:’] AND [tableon id=1 disable_filter_form=1]
Attention:
- target=’_blank’ – this attribute is from premium version of the plugin
- label_taxonomy=’Clothes|Model’ – such syntax is from premium version of the plugin
- label_before – this attribute is from premium version of the plugin
In file functions.php added next code:
add_filter('chain1', function($args) {
$res = 'Clothes|Model';
if (defined('ICL_LANGUAGE_CODE')) {
switch (ICL_LANGUAGE_CODE) {
case 'es':
$res = 'Ropa | Modelo';
break;
case 'uk':
$res = 'Одяг | Модель';
break;
}
}
return $res;
}, 10, 1);
add_filter('chain1-post', function($args) {
$res = 'Your new wear';
if (defined('ICL_LANGUAGE_CODE')) {
switch (ICL_LANGUAGE_CODE) {
case 'es':
$res = 'Tu nueva ropa';
break;
case 'uk':
$res = 'Візьміть свій новий одяг';
break;
}
}
return $res;
}, 10, 1);
add_filter('chain1-btn', function($args) {
$res = 'Take it!';
if (defined('ICL_LANGUAGE_CODE')) {
switch (ICL_LANGUAGE_CODE) {
case 'es':
$res = 'Tomar lo!';
break;
case 'uk':
$res = 'Забираймо!';
break;
}
}
return $res;
}, 10, 1);
Documentation: https://pluginus.net/shop/wordpress-plugins/wordpress-filter-plugins/taxonomy-chain-menu/