Answer the question
In order to leave comments, you need to log in
Is there a ready-made WordPress module, a filter that is saved and displayed on all pages?
Good day!
I am interested in all the possibilities of implementing this idea. Please tell me a ready-made WordPress module, or people who can do it. Essence:
You need a filter (by tags and / or categories), which is saved when visiting any page of the site / search_section. On the first visit, an empty filter appears on the side (above, near, doesn't matter) and filters further visits to all pages, including saving the settings on the object page.
For example:
A site for renting / buying a home.
The user went to the site and saw a menu, an empty filter, and the main area with the entire list of objects.
The user selects the number of rooms in the filter (1, 2, 3+), the type of service (rent, purchase, sale, etc.), the price (even with a slider, at least enters - it’s not the point) after filtering, later when surfing the site, he looks at all the information only by selected parameters (for example, only renting one-room apartments within a certain amount) and everything related to these parameters (news, articles, or in general it has the ability to choose whether to filter news and / or articles).
When you click on the object you like in the search results, detailed information about it opens visually above / in / next to the filter results (ideally ajax), while the filter with the parameters selected by the user remains visible and saved, like the filter result.
As a result, the user only sees information of interest to him on objects, text, images, etc. on the entire site and at any time can change the filter parameters ... Something like this ... I've been looking for the third day.
The closest example of what I want is here:
ekskursburo.ru/excursions
Thank you very much in advance, at least for your interest...
Answer the question
In order to leave comments, you need to log in
To be honest, it's a very rough and crude use case. Filtering for the current session or forever? How is the collection of filters or access to a higher level? How are filters changed? In general, such a concept is called faceted search / search using filters, it is used on all adequate online stores and directories (including real estate). This has long been a standard pattern, and there is no need to invent anything. There are a lot of plugins for this pattern, both paid and free. Including on the Toaster, it was discussed more than once, I myself left links 5 times. So, from memory:
https://facetwp.com/
https://searchwp.com/
https://wordpress.org/plugins/search- by-wp-search/...
https://wordpress.org/plugins/webkite/screenshots/
https://wordpress.org/plugins/wp-ultimate-search/
There is also https://wordpress.org/plugins/search.php?type=term...
But all these solutions have one caveat. If filtering goes only by taxonomies (categories, tags, custom taxonomies) - then no problem. If you need to make filters by custom post metadata (metadata), then all of them will be slow, the larger the base, the slower the work. The fact is that metadata is stored in a table without indexes, and any query requires iterating through all the rows in the table. If the site is large, a lot of metadata is used, then there is only one solution - installing and configuring on the Elastic Search server and searching through it. But this is for the advanced.
In general, it is elementary done through sessions in php, but how to embed it in wp is already a question, it depends on which modules or what is used in wp.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question