{"id":226625,"date":"2025-04-07T04:21:32","date_gmt":"2025-04-07T04:21:32","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/category-filter-block\/"},"modified":"2026-07-30T09:08:35","modified_gmt":"2026-07-30T09:08:35","slug":"category-filter-block","status":"publish","type":"plugin","link":"https:\/\/li.wordpress.org\/plugins\/category-filter-block\/","author":10980640,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.1","stable_tag":"1.2.1","tested":"7.0.2","requires":"6.5","requires_php":"7.3","requires_plugins":null,"header_name":"Category Filter Block","header_author":"Misha Rudrastyh","header_description":"Just a simple category filter block with the Interactivity API support.","assets_banners_color":"","last_updated":"2026-07-30 09:08:35","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/rudrastyh.com","rating":5,"author_block_rating":0,"active_installs":100,"downloads":2043,"num_ratings":1,"support_threads":1,"support_threads_resolved":1,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"rudrastyh","date":"2025-04-07 06:04:32"},"1.1":{"tag":"1.1","author":"rudrastyh","date":"2026-02-12 04:50:09"},"1.2":{"tag":"1.2","author":"rudrastyh","date":"2026-05-30 04:46:19"},"1.2.1":{"tag":"1.2.1","author":"rudrastyh","date":"2026-07-30 09:08:35"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3267623,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3267623,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":[],"assets_blueprints":{},"all_blocks":{"rudr\/category-filter":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"rudr\/category-filter","version":"1.2.1","title":"Category Filter","category":"theme","description":"Displays a simple AJAX-powered category filter.","keywords":["taxonomy","category","tags","filter","query"],"supports":{"align":["wide","full"],"html":false,"anchor":false,"interactivity":true,"typography":{"fontSize":true,"textAlign":false},"spacing":{"padding":true,"margin":true,"__experimentalDefaultControls":{"padding":true,"margin":true}},"position":{"sticky":true}},"ancestor":["core\/query"],"usesContext":["queryId","query","enhancedPagination"],"attributes":{"textAlign":{"type":"string"},"filterType":{"type":"string","default":"dropdown"},"showCount":{"type":"boolean","default":false},"allItemsText":{"type":"string"}},"textdomain":"category-filter-block","editorScript":"file:.\/index.js","editorStyle":"file:.\/index.css","style":"file:.\/style-index.css","render":"file:.\/render.php","viewScriptModule":"file:.\/view.js"}},"tagged_versions":["1.0","1.1","1.2","1.2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3554322,"resolution":"1","location":"assets","locale":"","width":2360,"height":1494},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3554322,"resolution":"2","location":"assets","locale":"","width":2360,"height":1494}},"screenshots":{"1":"Category Filter block in the Inserter","2":"Category Filter block settings"}},"plugin_section":[],"plugin_tags":[37962,2236,148076,50137,4643],"plugin_category":[],"plugin_contributors":[173152],"plugin_business_model":[],"class_list":["post-226625","plugin","type-plugin","status-publish","hentry","plugin_tags-category-filter","plugin_tags-filter","plugin_tags-gutenberg","plugin_tags-post-filter","plugin_tags-taxonomy-filter","plugin_contributors-rudrastyh","plugin_committers-rudrastyh"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/category-filter-block\/assets\/icon-128x128.png?rev=3267623","icon_2x":"https:\/\/ps.w.org\/category-filter-block\/assets\/icon-256x256.png?rev=3267623","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/category-filter-block\/assets\/screenshot-1.png?rev=3554322","caption":"Category Filter block in the Inserter"},{"src":"https:\/\/ps.w.org\/category-filter-block\/assets\/screenshot-2.png?rev=3554322","caption":"Category Filter block settings"}],"raw_content":"<!--section=description-->\n<p>The category filter block allows you to filter posts displayed with the standard Query Loop block by category, without a page refresh. The Interactivity API is fully supported.<\/p>\n\n<h4>Features<\/h4>\n\n<p>\u2705 The category filter can be displayed as links or as a select dropdown field\n\u2705 You can display a post count number near each category\n\u2705 Custom <strong>All Categories<\/strong> text\n\u2705 Works without page refresh (AJAX + Interactivity API)\n\u2705 Sticky positioning\n\u2705 Block styles customization (Font size, Padding, Margin)\n\u2705 The block can add parameters to the page URL, for example, ?filter-category=travel<\/p>\n\n<p>The plugin also has a PRO version, its main difference is that it supports filtering by any custom taxonomy \u2013 Tags, Product Categories, Product Tags, Brands, etc. It has a bunch of other features too.<\/p>\n\n<h4>Pro features<\/h4>\n\n<p>\u26a1\ufe0f Custom taxonomies are supported\n\u26a1\ufe0f Multiple taxonomy filters within the same Query Loop block (for example, by categories AND tags)\n\u26a1\ufe0f Sort categories (terms) in the filter alphabetically, by post count, or in a custom order\n\u26a1\ufe0f The filter can be displayed as buttons with the possibility of style customization (Text color, Background color, Border, Border radius, etc.)\n\u26a1\ufe0f Display checkboxes in the dropdown filter to select multiple categories<\/p>\n\n<p>\ud83d\ude80 <a href=\"https:\/\/rudrastyh.com\/plugins\/taxonomy-filter-block\">Upgrade to Pro<\/a><\/p>\n\n<!--section=installation-->\n<h4>Automatic Install<\/h4>\n\n<ol>\n<li>Log into your WordPress dashboard and go to Plugins &rarr; Add New<\/li>\n<li>Search for \"Category Filter Block\"<\/li>\n<li>Click \"Install Now\" under the \"Category Filter Block\" plugin<\/li>\n<li>Click \"Activate Now\"<\/li>\n<\/ol>\n\n<h4>Manual Install<\/h4>\n\n<ol>\n<li>Download the plugin from the download button on this page<\/li>\n<li>Unzip the file, and upload the resulting <code>category-filter-block<\/code> folder to your <code>\/wp-content\/plugins<\/code> directory<\/li>\n<li>Log into your WordPress dashboard and go to Plugins<\/li>\n<li>Click \"Activate\" under the \"Category Filter Block\" plugin<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"is%20there%20a%20demo%3F\"><h3>Is there a demo?<\/h3><\/dt>\n<dd><p>Yes, you can see every filter type in action on <a href=\"https:\/\/demo.rudrastyh.com\/taxonomy-filter-block\">the demo page<\/a>.<\/p><\/dd>\n<dt id=\"are%20custom%20post%20types%20supported%3F\"><h3>Are custom post types supported?<\/h3><\/dt>\n<dd><p>Yes, both free and PRO versions allow you to filter custom post types by category. However, if you need to filter CPT by tags or a custom taxonomy, then you will need <a href=\"https:\/\/rudrastyh.com\/plugins\/taxonomy-filter-block\">the PRO version<\/a> of the plugin.<\/p><\/dd>\n<dt id=\"is%20it%20tested%20with%20the%20latest%20php%20version%3F\"><h3>Is it tested with the latest PHP version?<\/h3><\/dt>\n<dd><p>Yes, it is.<\/p><\/dd>\n<dt id=\"will%20it%20work%20if%20the%20%22reload%20full%20page%22%20option%20is%20active%20for%20my%20%22query%20loop%22%20block%3F\"><h3>Will it work if the \"Reload full page\" option is active for my \"Query Loop\" block?<\/h3><\/dt>\n<dd><p>Yes, the plugin supports both AJAX and non-AJAX query loops.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Minor UI improvements<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Fixed: An issue with the link-type filter styles in the Block Editor in WordPress 7.0<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Fixed: Deprecation notices in the browser console (Block API version, __nextHasNoMarginBottom, and __next40pxDefaultSize)<\/li>\n<li>Minor UI improvements<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Just a simple category filter block with the Interactivity API support.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/226625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=226625"}],"author":[{"embeddable":true,"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/rudrastyh"}],"wp:attachment":[{"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=226625"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=226625"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=226625"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=226625"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=226625"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=226625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}