Përshkrim
This plugin dynamically generates category filter buttons using slugs declared in your HTML (e.g., in a Grid block). It fetches category names using the WordPress REST API, eliminating manual slug-to-name mapping.
Features include:
- Auto filter display from data-cat-slug attribute
- Smart category name resolution via REST API
- Works with Betheme’s .btCatFilter structure
- No PHP or theme file edits needed
- Supports multilingual category names
License
This plugin is licensed under GPLv2 or later.
Instalim
- Upload the ZIP file via WordPress Admin Plugins Add New Upload Plugin.
- Activate the plugin.
- Edit your page or post with a Grid or blog section.
- Add the attribute
data-cat-slug="slug1,slug2"to the element. - Ensure filter container uses
.btCatFilterand items use.btCatFilterItem.
PBR
-
Does it require jQuery?
-
No. It uses vanilla JavaScript.
-
Does it support multilingual websites?
-
Yes. It works with category names in any language.
-
Can I use it with custom taxonomies?
-
Yes, with minor tweaks to REST API endpoint logic.
Shqyrtime
Për këtë shtojcë s’ka shqyrtime.
Kontribues & Zhvillues
“Dynamic Category Slug Filter” është software me burim të hapur. Në këtë shtojcë kanë dhënë ndihmesë personat vijues.
KontribuesPërkthejeni “Dynamic Category Slug Filter” në gjuhën tuaj.
Ju intereson zhvillimi?
Shfletoni kodin, shkarkoni depon SVN, ose pajtohuni përmes RSS-je te regjistri i zhvillimeve.
Regjistër ndryshimesh
1.0
- Initial release.