Published on May 1, 2017 by WPBeginner

Do you want to let users filter posts and pages when visiting your site? Letting your users filter posts by category, tags, post types, etc can help sort through your site. In this video, we will show you how to filter posts and pages in WordPress.

Text version of this tutorial:
www.wpbeginner.com/plugins/how-to-let-users-filter-posts-and-pages-in-wordpress/

If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos.

Check us out on Facebook:
www.facebook.com/wpbeginner

Follow us on Twitter:
twitter.com/wpbeginner

Join our circle on Google+:
plus.google.com/+wpbeginner/

Checkout our website for more WordPress Tutorials
www.wpbeginner.com/

Summary of this tutorial:

For this tutorial we are going to use the Search & Filter plugin which can be found here:

Search & Filter

Once activated the plugin will add a new menu item that will take you to the plugin’s usage and documentation page.

It offers a shortcode with different parameters that you can either add to a specific area or add to your theme files.

Each option has its own benefits and the documentation page can certainly help with how to add each option.

Leave a Reply

20 Comments on "How to Let Users Filter Posts and Pages in WordPress"

Notify of
avatar

Wiwaha Tales
Guest
Wiwaha Tales
1 month 6 days ago

how can i create post grid view  in result section

Mac Dolf Aquino
Guest
Mac Dolf Aquino
2 months 25 days ago

Is there a way to filter content (images) to be displayed on a site? for example i have images assigned to 3 groups (white, brown & black) When white filter is chosen, only images associated with the white group will be displayed. Thanks!

Mac Dolf Aquino
Guest
Mac Dolf Aquino
2 months 25 days ago

Is there a way to filter content (images) to be displayed on a site? for example i have images assigned to 3 groups (white, brown & black) When white filter is chosen, only images associated with the white group will be displayed. Thanks!

Bee Thalin
Guest
Bee Thalin
4 months 17 days ago

I don't get a search box, my page is blank. I did exactly like you did. I downloaded the plugin, I clicked on Install, I clicked on Search & Filter in the Panel and copy the [searchandfilter taxonomies="categories,post_tag"], saved the page and view the page – which is blank. What to do? I am using theme DIVI with the latest version of WordPress. Hope to hear from you soon… Bee

trent sohnle
Guest
trent sohnle
4 months 2 days ago

for more in depth with examples: docs.designsandcode.com/search-filter/#how-to-use

trent sohnle
Guest
trent sohnle
4 months 2 days ago

Try this: [searchandfilter fields="search,category,post_tag"]

WPBeginner - WordPress Tutorials
Guest
WPBeginner - WordPress Tutorials
4 months 16 days ago

It sounds like the plugin is having a display issue, you may want to reach out to the plugin's support for their recommendation

Bee Thalin
Guest
Bee Thalin
4 months 17 days ago

I don't get a search box, my page is blank. I did exactly like you did. I downloaded the plugin, I clicked on Install, I clicked on Search & Filter in the Panel and copy the [searchandfilter taxonomies="categories,post_tag"], saved the page and view the page – which is blank. What to do? I am using theme DIVI with the latest version of WordPress. Hope to hear from you soon… Bee

trent sohnle
Guest
trent sohnle
4 months 2 days ago

for more in depth with examples: docs.designsandcode.com/search-filter/#how-to-use

trent sohnle
Guest
trent sohnle
4 months 2 days ago

Try this: [searchandfilter fields="search,category,post_tag"]

WPBeginner - WordPress Tutorials
Guest
WPBeginner - WordPress Tutorials
4 months 16 days ago

It sounds like the plugin is having a display issue, you may want to reach out to the plugin's support for their recommendation

kod1 Tutorials
Guest
kod1 Tutorials
9 months 18 days ago

may i ask,do you have to add the shortcode to every single page and post?

Freelance Web Designer | Renzo Salvador
Guest
Freelance Web Designer | Renzo Salvador
9 months 9 days ago

kod1 Tutorials i think at that point you should add the php code they offer in the template you want it to appear.

kod1 Tutorials
Guest
kod1 Tutorials
9 months 17 days ago

thank you,i will look at that now 😀

WPBeginner - WordPress Tutorials
Guest
WPBeginner - WordPress Tutorials
9 months 17 days ago

You would add the shortcode where you would want it to display or you could take a look at the written article for how to add it to your theme files: www.wpbeginner.com/plugins/how-to-let-users-filter-posts-and-pages-in-wordpress/

kod1 Tutorials
Guest
kod1 Tutorials
9 months 18 days ago

may i ask,do you have to add the shortcode to every single page and post?

Freelance Web Designer | Renzo Salvador
Guest
Freelance Web Designer | Renzo Salvador
9 months 9 days ago

kod1 Tutorials i think at that point you should add the php code they offer in the template you want it to appear.

Shazy Shazz
Guest
Shazy Shazz
9 months 12 days ago

WPBeginner – WordPress Tutorials hey i found the article but nothing mentioned as where to put exactly the shortcode neither given in plugin doc. Would you please tell me on which template to add the shortcode: I tried in functions.php and my site went blank. I want to show it site-wide so in which template I should put it? Am using twentyfifteen

kod1 Tutorials
Guest
kod1 Tutorials
9 months 17 days ago

thank you,i will look at that now 😀

WPBeginner - WordPress Tutorials
Guest
WPBeginner - WordPress Tutorials
9 months 17 days ago

You would add the shortcode where you would want it to display or you could take a look at the written article for how to add it to your theme files: www.wpbeginner.com/plugins/how-to-let-users-filter-posts-and-pages-in-wordpress/

wpDiscuz