FacetWP is an excellent plugin for setting up filtering capabilities for entries in WordPress.
Here are FacetWP's benefits over using something like Isotope:
- supports pagination out of the box. Entries being filtered need not all be present on a single page
- supports automatic narrowing down of filters i.e., as items get filtered by one criterion, options in other filters automatically change to be relevant to the result set.
- fast and easy
This tutorial provides the steps to display a grid of Portfolio CPT entries on its archive page with Portfolio Categories and Portfolio Tags filters at the top. Needless to say, this can be applied for any post type and any associated taxonomies.
Add your Portfolio entries while making sure to set featured images. In this example, we are using images sized 714 x 428.
Add the following in child theme's functions.php:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.