{"id":121770,"date":"2023-07-07T09:31:26","date_gmt":"2023-07-07T04:01:26","guid":{"rendered":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/?post_type=documents&#038;p=121770"},"modified":"2023-07-07T11:22:39","modified_gmt":"2023-07-07T05:52:39","slug":"add-category-wise-filter-in-custom-post-grid-layout-in-elementor","status":"publish","type":"documents","link":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/docs\/add-category-wise-filter-in-custom-post-grid-layout-in-elementor\/","title":{"rendered":"How to Add a Category Wise Filter in Custom Post Grid Layout in Elementor?"},"content":{"rendered":"\n<p>Looking to add a category-wise filter to your custom post grid in Elementor? By using the category filter, your visitors can easily navigate through different categories of posts and find the content they are most interested in.<\/p>\n\n\n\n<p>With the Dynamic Smart Showcase widget from The Plus Addons for Elementor you can easily add a category filter to your custom post grid.<\/p>\n\n\n\n<p><em>To check the complete feature overview documentation of The Plus Addons for Elementor Dynamic Smart Showcase widget, <a href=\"\/docs\/dynamic-smart-showcase-widget-settings-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">click here<\/a>.<\/em><\/p>\n\n\n\n<p><strong><em>Requirement&nbsp; &#8211; This widget is a part of The Plus Addons for Elementor, make sure its installed &amp; activated to enjoy all its powers.<\/em><\/strong><\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-a89b3969 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-75 is-style-fill\"><a class=\"wp-block-button__link has-nxt-global-color-8-color has-nxt-global-color-1-background-color has-text-color has-background wp-element-button\" href=\"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/pluslisting\/#dynamic-listing-wgts?utm_source=tpae&amp;utm_medium=docs&amp;utm_campaign=text\" style=\"border-radius:5px\" target=\"_blank\" rel=\"noreferrer noopener\">LIVE WIDGET LINK<\/a><\/div>\n<\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>To do this, add the Dynamic Smart Showcase widget on the page, and select <strong>Magazine Filter<\/strong> from the <strong>Style<\/strong> dropdown, after selecting the appropriate style from the <strong>Magazine Layout<\/strong>, you have to select <strong>Posts<\/strong> from the <strong>Post Type<\/strong> dropdown.<\/p>\n\n\n\n<p>Then go to the <strong>Extra Options<\/strong> tab, and turn on the <strong>Category Wise Filter<\/strong> toggle.&nbsp;<\/p>\n\n\n\n<p>To ensure this works, make sure to assign categories to your post, only then it will show here.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"330\" height=\"898\" src=\"https:\/\/etemplates.wdesignkit.com\/wp-content\/uploads\/sites\/55\/2023\/07\/dynamic-smart-showcase-category-wise-filter.gif\" alt=\"dynamic smart showcase category wise filter\" class=\"wp-image-121771\"\/><\/figure>\n\n\n\n<p>Now you\u2019ll be able to see filter options in your post listing that you can use to filter the posts by category.<\/p>\n\n\n\n<p>From the <strong>All Filter Category<\/strong> <strong>Text<\/strong> field, you can add an additional filter label to show all the posts.<\/p>\n\n\n\n<p>From the <strong>Only Show Next Previous<\/strong> toggle, you can add a next previous navigation to the list.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><em>Note: Enabling the Only Show Next Previous option will hide the filters.<\/em><\/p>\n<\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p>You can also select different predefined styles for the category filter labels for normal and hover states from the <strong>Category Filter Style<\/strong> and <strong>Filter Hover Style<\/strong> dropdowns, respectively.&nbsp;<\/p>\n\n\n\n<p>From the <strong>Filter Alignment<\/strong> section, you can align the filter.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"746\" height=\"730\" src=\"https:\/\/etemplates.wdesignkit.com\/wp-content\/uploads\/sites\/55\/2023\/07\/dynamic-smart-showcase-category-wise-filter-demo.gif\" alt=\"dynamic smart showcase category wise filter demo\" class=\"wp-image-121772\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Category Filter in Custom Post Type<\/h2>\n\n\n\n<p>To add a category filter to a custom post type you need to have a custom post type with a custom taxonomy. You can use the free <a href=\"https:\/\/wordpress.org\/plugins\/advanced-custom-fields\/\" target=\"_blank\" rel=\"noreferrer noopener\">Advanced Custom Fields (ACF)<\/a> to <a href=\"https:\/\/www.advancedcustomfields.com\/resources\/registering-a-custom-post-type\/\" target=\"_blank\" rel=\"noreferrer noopener\">create a custom post type<\/a> and <a href=\"https:\/\/www.advancedcustomfields.com\/resources\/registering-a-custom-taxonomy\/\" target=\"_blank\" rel=\"noreferrer noopener\">custom taxonomy<\/a>.<\/p>\n\n\n\n<p>Make sure you have added some posts in the custom post type and taxonomy in the custom taxonomy. Suppose we have a custom post type called <strong>Books<\/strong> and a custom taxonomy called <strong>Book Author<\/strong>.&nbsp;<\/p>\n\n\n\n<p>Now add the Dynamic Smart Showcase widget on the page, and select <strong>Magazine Filter<\/strong> from the <strong>Style<\/strong> dropdown, after selecting the appropriate style from the <strong>Magazine Layout<\/strong>, you have to select your custom post type i.e. <strong>Books<\/strong> from the <strong>Post Type<\/strong> dropdown.<\/p>\n\n\n\n<p>Then go to the <strong>Content Source<\/strong> tab, and select your custom taxonomy i.e. <strong>book-author<\/strong> from the <strong>Taxonomy<\/strong> dropdown.<\/p>\n\n\n\n<p>Then go to the <strong>Extra Options<\/strong> tab, and turn on the <strong>Category Wise Filter<\/strong> toggle.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"326\" height=\"900\" src=\"https:\/\/etemplates.wdesignkit.com\/wp-content\/uploads\/sites\/55\/2023\/07\/dynamic-smart-showcase-custom-post-category-wise-filter.gif\" alt=\"dynamic smart showcase custom post category wise filter\" class=\"wp-image-121773\"\/><\/figure>\n\n\n\n<p>Now you\u2019ll be able to see filter options in your custom post type listing that you can use to filter the posts by taxonomy.<\/p>\n\n\n\n<p>The rest of the options will work similarly to the normal post.<\/p>\n\n\n\n<p>Also, read <a href=\"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/docs\/create-a-custom-post-grid-layout-with-dynamic-cpts-in-elementor\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Create a Custom Post Grid Layout with Dynamic CPTs in Elementor<\/a>.<\/p>\n","protected":false},"author":25,"featured_media":121774,"parent":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","docs":[577,526],"class_list":["post-121770","documents","type-documents","status-publish","format-standard","has-post-thumbnail","hentry","docs-dynamic-smart-showcase","docs-plus-listings"],"acf":[],"_links":{"self":[{"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/documents\/121770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/documents"}],"about":[{"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/types\/documents"}],"author":[{"embeddable":true,"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/comments?post=121770"}],"version-history":[{"count":0,"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/documents\/121770\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/media\/121774"}],"wp:attachment":[{"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/media?parent=121770"}],"wp:term":[{"taxonomy":"docs","embeddable":true,"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/docs?post=121770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}