How can I filter products of custom post type?
-
I am using ACF Pro and CPT UI plugins. ACF for custom fields and CPT for custom post type and custom taxonomy. I have created post type with name ‘Product’ and added two taxonomies ‘displaysize’ & ‘type’.
Website Live link is: http://tulacro.geekmozg.com/When you’ll land on homepage, you’ll see five different categories of products(Module, Monitor…….) If you select module it’ll filter display sizes of that category. Now when you choose a size (5.7). I want to display products where: type=module&size=5-7
I am getting type and size from URL.
$type = $_GET['type']; $size = $_GET['size'];
Now I want to get both taxonomies (displaysize & type) to compare with url and want to display filtered results.
Please tell me, how can I?
- The topic ‘How can I filter products of custom post type?’ is closed to new replies.