In this tutorial I'm going to show You how to create a dropdown filter with AJAX for WordPress Categories.
Step #1 - Filter by taxonomy terms
Create a file named dropdown-filter.php
Search and replace "YOUR_TAXONOMY" and "YOUR_POST_TYPE" in following the code!
#3 'taxonomy' => 'YOUR_TAXONOMY' #20 'post_type' => 'YOUR_POST_TYPE',
Step #2 - Create a shortcode and place it wherever You want
Just copy this code in the functions.php
To view the full content, please sign up for the membership.
If You are already a member, please log in below: