Linux 软件免费装

Taxonomy Chain Menu

开发者 RealMag777
更新时间 2023年8月23日 16:35
捐献地址: 去捐款
PHP版本: 4.2 及以上
WordPress版本: 6.3
版权: GPLv2
版权网址: 版权信息

标签

menu taxonomies taxonomy terms filter woot tableon woof taxonomy chain menu

下载

详情介绍:

Taxonomy Chain Menu is WordPress plugin with one shortcode, which allows to create taxonomies terms chain menus using dropdowns with inbuilt or custom types of WordPress taxonomies. Taxonomy Chain Menu is available as one shortcode: [taxonomy_chain_menu] with heap of attributes described below. Compatible with WOOF filtration behavior! Demo Pages: Taxonomy Chain Menu Features (shortcode attributes): ✅ post_slug: post type to use in the chain menu. Default slug is 'post'. ✅ taxonomy: taxonomy terms to navigate. Default taxonomy is 'category'. ✅ parent_id: started term ID, 0 means top parents. Default slug is 0. ✅ exclude: terms ids to hide from the chain. For example: 12,44,73. ✅ include: terms ids to show. Opposite to 'exclude'. For example: 11,43,72. ✅ include_top: terms ids related to the top parent terms only (parent == 0). For example: 10,42,71. ✅ show_count: show/hide count of posts in the terms in drop-downs options. Default value is 0. ✅ watch_view: values: 'posts', 'terms', 'none'. What to show on the end of the chain. Posts - drop-down with posts. Terms - button with the link to posts of the selected term in the last drop-down. None - nothing, good to apply with products tables filtering. ✅ label_taxonomy: label(s) of the drop-down(s). Example: 'Producer'. Also it is possible to use custom actions (must started from 'call_filter_') for translations, example: [taxonomy_chain_menu label_taxonomy='call_filter_chain1' label_post='call_filter_chain1-post']. In file functions.php add next code: ` add_filter('chain1', function($args) { $res = 'Producer'; //for WPML compatibility as an example if (defined('ICL_LANGUAGE_CODE')) { switch (ICL_LANGUAGE_CODE) { case 'es': $res = 'Productor'; break; case 'uk': $res = 'Виробник'; break; } } return $res; }, 10, 1); ✅ **label_post**: label of the posts drop-down. To use action instead of text in file functions.php add next code: (<em>must started from 'call_filter_'</em>) add_filter('chain1-post', function($args) { $res = 'Select car'; //for WPML compatibility as an example if (defined('ICL_LANGUAGE_CODE')) { switch (ICL_LANGUAGE_CODE) { case 'es': $res = 'Seleccionar coche'; break; case 'uk': $res = 'Яке твое авто'; break; default: $res = 'Select your car'; break; } } return $res; }, 10, 1); ✅ **button_title**: title of the button at the end of the chain. By default it is 'GO!'. Also is possible to use action (<em>must started from 'call_filter_'</em>), example: [taxonomy_chain_menu post_slug='product' taxonomy='product_cat' button_title='call_filter_chain1-btn'] add_filter('chain1-btn', function($args) { $res = 'Take it!'; //for WPML compatibility as an example if (defined('ICL_LANGUAGE_CODE')) { switch (ICL_LANGUAGE_CODE) { case 'es': $res = 'Tomar lo!'; break; case 'uk': $res = 'Забираймо!'; break; } } return $res; }, 10, 1); ` ✅ chain_id: (for developers)unique JavaScript identifier for javascript event 'taxonomy-chain-menu' and in custom WordPress actions ✅ connect_table: unique identifier of posts/products table (TABLEON or WOOT) set in table shortcode attribute or its backend settings. It is possible to use Taxonomy Chain Menu as filter with posts and products table plugins: TABLEON - WordPress Posts Table Filterable and WOOT - WooCommerce Products Table Such scripts cooperation is possible thanks to JavaScript event 'taxonomy-chain-menu' and shortcode attributes 'chain_id' with attribute 'connect_table' ✅ do_filter: accepts from the box only one value - 'woof' (demo), but it is possible to adapt any another wordpress/woocommerce filter plugin (for developers) using js event taxonomy-chain-menu-do-filter and values there: e.detail.term_id, e.detail.slug, e.detail.container. Example: [taxonomy_chain_menu post_slug='product' taxonomy='product_cat' do_filter='woof'] ✅ select_width: widths for drop-downs in chain. Use one value or some separated by '|'. Examples: '300px', '300px|250px|20%'. Last value is actual for drop-downs in chain with number 3 and more. ✅ max_posts_count: set maximum count of posts in posts drop-down ✅ posts_orderby: how to order posts in posts drop-down (by title, id, meta). By default: title. ✅ posts_order: posts order direction in posts drop-down. Possible values: ASC, DESC ✅ posts_order_meta_key: here is meta key by which posts in posts drop-down should be ordered. Be care - meta values should exist in the requested posts. Example: [taxonomy_chain_menu post_slug='product' taxonomy='product_cat' posts_orderby='meta_value_num' posts_order_meta_key='prod_1' posts_order='DESC'] ✅ no jQuery - pure JavaScript! PREMIUM FEATURES ✅ All features above ✅ target: how to open selected post/terms page. Default is: '_self' (opening in the same browser tab). To open in another tab use: '_blank' ✅ syntax for label_taxonomy: as an example - 'Producer|Model', such syntax allows to set individual title for each drop-down in the chain ✅ label_before: any words before first drop-down. Also it is possible to set text through action (must started from 'call_filter_'): ([taxonomy_chain_menu post_slug='product' taxonomy='product_cat' label_before='call_filter_chain1-before']) ✅ ready_chain: allows to display pre-selected values in the chain menu, example - [taxonomy_chain_menu watch_view='posts' ready_chain='17,20,post(51)'] - at the end of the chain will be displayed drop-down with posts and button with the link to the selected post. If exists more sub-categories use 0 (zero) at the end: [taxonomy_chain_menu ready_chain='17,20,0']. See example. ✅ select_wrapper: has only one value 'selectron23' and allows to wrap drop-down in reach html-element Selectron23. Just look an example please to understand! ✅ Compatible with WPML automatically, no actions need. Get Premium version of the plugin: on PluginUs.Net Make your site more profitable with next powerful scripts: ✅ WOOF - Products Filter for WooCommerce: is an extendable, flexible and robust plugin for WooCommerce that allows your site customers filter products by products categories, attributes, tags, custom taxonomies and price. Supports latest version of the WooCommerce plugin. A must have plugin for your WooCommerce powered online store! Maximum flexibility! ✅ WOOCS - WooCommerce Currency Switcher: is WooCommerce multi currency plugin, that allows your shop customers switch products prices currency according to the set rates in the real time and pay in the selected currency (optionally). Allows to add any currency to you WooCommerce store! The best woo currency switcher plugin for WooCommerce e-shop! ✅ BEAR - Bulk Editor for WooCommerce: WordPress plugin for managing and bulk edit WooCommerce Products data in robust and flexible way! Be professionals with managing data of your woocommerce e-shop! ✅ WPBE - WordPress Posts Bulk Editor Professional: is WordPress plugin for managing and bulk edit WordPress posts, pages and custom post types data in robust and flexible way! Be professionals with managing data of your site! ✅ PROTAS - WooCommerce Active Products Tables: is WooCommerce plugin for displaying shop products in table format. Tables makes focus for your buyers on the things they want to get, nothing superfluous, just what the client wants, and full attention to what is offered! ✅ TABLEON - WordPress Post Tables Filterable: WordPress plugin for displaying site posts and their custom post types in table format. Tables makes focus for your customers on the things they want to get, nothing superfluous, just what the client wants, and full attention to what is offered! ✅ MDTF - WordPress Meta Data Filter & Taxonomies Filter: the plugin for filtering and searching WordPress content in posts and their custom types by taxonomies and meta data fields. The plugin has very high flexibility thanks to its rich filter elements and in-built meta fields constructor! ✅ WPCS - WordPress Currency Switcher: is a WordPress plugin that allows to switch currencies and get their rates converted in the real time on your site!

安装:

升级注意事项:

更新日志:

1.0.8 1.0.7.2 Plugin release. Operate all the basic functions.