I
I
ilyaolchikov2016-05-06 23:36:44
WordPress
ilyaolchikov, 2016-05-06 23:36:44

How to properly filter a Wordpress directory?

Hello!
There is a catalog page. It contains some categories. In addition, there are brands and tags by which you need to filter information. Here's a snippet from the TO.
There are 4 options for filtering goods in the catalog
1) The visitor entered the category - all products in the category are displayed without filtering
2) The visitor filtered the category only by the tag (for example: cabinet furniture -> closets)
3) The visitor filtered the category only by brand (for example: cabinet category furniture -> brand “a lot of furniture”) – only products of a specific brand remain in the category listing
4) The visitor filtered the request by brand and tag (for example: cabinet furniture -> wardrobes -> (shop) “A lot of furniture”
That is, it should be 4 url type:
1) caterory1/
2) caterory1/tag1/
3) caterory1/tag1/brand1/
4) caterory1/brand1/
The customer does not like another format of urls. For some reason, he wants to see all this with his eyes.
I wanted to do all this in categories, but somehow the 4th point does not work. I inherited caterory1->tag1->brand1 categories and everything would be ok, but he invented that he needed the 4th type. I thought about making WordPress categories + tags, but here the question arises that there is a template for displaying posts by tag, but here the tags are also in the url in different places ...
Help, it is very necessary)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question