Answer the question
In order to leave comments, you need to log in
How to filter custom taxonomies?
Hello everyone, I'm interested in the implementation of a directory with a filter on wordpress. There is a product, manufacturers and product categories. The page should have checkboxes of manufacturers, when you select the active one, a list of product categories of this manufacturer should appear, by clicking on which the corresponding product category is displayed. Using the advansed custom fields plugin, I created 2 taxonomies (manufacturers and product categories). And one custom post type - products, and tied these taxonomies to it. Everything is beautiful in the admin panel - I create a product, select the manufacturer and category, but I have been tormented for a long time with the output and implementation of the filter. Please tell me how to organize the output into a template in the form I need, or where to dig, and whether I understand and use taxonomy at all.
Answer the question
In order to leave comments, you need to log in
Unfortunately, in
$('#category-tow').change(function(){
var data={
action: 'sort_action',
security: Ajax.security,
cat : $(this).val()
}
$.post(Ajax.ajaxurl, data, function (response) {
тут разбираете response и пишете в нужные места
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question