Wizhi标签选择基于标签的多条件过滤插件

Wordpress2年前 (2023)发布 SUYEONE
1.1K 0 0

The Wizhi Multi Filters plugin, previously developed for this Website, has proven highly beneficial to users and has garnered valuable feedback. A significant issue reported was its inability to filter default posts. Due to certAIn constraints in WordPress, integrating this feature into the Wizhi Multi Select plugin would complicate the code and compromise maintainability. As a result, we have decided to create a separate plugin, the Wizhi tag Select, specifically designed to address this issue.

The Wizhi Tag Select plugin inherently supports multiple tag prioritization for filtering, although this feature might be slightly concealed and lacks clear official documentation. In practice, it’s straightforward. For instance, on our website (www.wpzhiku.com), appending “?tags=theme+plugins” to the URL will display articles tagged with both ‘theme’ and ‘plugins’, while “?tags=theme,plugins” will show articles tagged with either ‘theme’ or ‘plugins’.

When to use tag filtering versus custom category filtering? Both offer similar multi-criteria filtering effects but cater to different scenarios. If you have an existing content-rich site and need to filter that content, use tag filtering. For new websites or adding new content types to an existing site, consider using custom categories. If you’re working with advanced themes that include custom categories, utilize those for filtering.

To employ the Wizhi Tag Select plugin, the filtering functionality is integrated through WordPress’s menu system. After activation, it registers a menu location called “Tag Menu.” You can then add tags as menu items according to your requirements. Follow these steps:
1. Create a menu for the plugin.
2. Add the necessary filtering tags as menu items.
3. Check “Filter Menu” in the theme locations.
4. Paste the following code into your theme’s appropriate spot:
`

‘tag_select’, ‘menu_id’ => ‘filter-menu’, ‘menu_class’ => ‘tag-list’, ‘walker’ => new tag_select_Walker_Nav_Menu())); ?>

`

For future updates, the Wizhi Tag Select plugin currently offers basic filtering. Planned enhancements include:
– Allowing users to choose filtering logic (e.g., “all” or “any” conDiTions) in the backend settings.
– Exploring the addition of custom category filtering (feasibility to be determined).

This plugin is a paid plugin priced at CNY 198.00. To inquire or purchase, please contact me via qq: 470266798. My online hours are Monday to Friday, 9:00 AM to 5:00 PM. For messages outside these hours, please send an email to my QQ mailbox, and I’ll respond promptly.

© 版权声明

相关文章

暂无评论

暂无评论...
☺一键登录开启个人书签等功能!