P
P
partizzend2015-08-21 12:33:06
Taxonomy
partizzend, 2015-08-21 12:33:06

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

2 answer(s)
W
WP Panda, 2015-08-21
@partizzend

https://toster.ru/q/217669#answer_586483https://to...
like this

P
partizzend, 2015-08-21
@partizzend

Unfortunately, in

$('#category-tow').change(function(){
 var data={
  action: 'sort_action',
  security: Ajax.security,
  cat : $(this).val()
 }
$.post(Ajax.ajaxurl, data, function (response) {
 тут разбираете response и пишете в нужные места
});
});

I don’t know what the phrase “parse the response here and write to the right places” means
and how to get brands for each post and write them in a separate array, but still thanks a lot for the answer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question