Forum Replies Created
Thanks a lot for your reply. I totally understand your problematic to select what to include in your todo list. It’s very nice to take my needs into account.
I join a fake screenshot of what I have in mind. You will see the categories and products separators in dark red. It’s like some other ecommerce searches, to show the results by type: products, categories, …
In my case, hooks usable in JS could solve my problem, even if it’s not the best way for performances (regenerate the results ordering).
Have a nice day,
Attachments:You must be logged in to view attached files.
Just to add something. I saw that Brand is considered as a taxonomy by the faceted search plugin I have on my website.
Thanks for your help.
Brand is an attribute of products in woocommerce.
If I don’t group, I can see the attribute “Brand” as the first result between four.
If I group, as it’s not a category nor a product nor a post type, it disappears.
I don’t if there is a way to post filter the results. I saw an example with the categories titles in the results titles with the hook asp_pagepost_results.
I thoughabout a solution with a hook: parsing the results and hash the url of the link of each result in order to add a line of the type of results when I see different groups (categories, attributes, products, …).
Thanks for your reply.
Have a nice day,
I have moved my other question in a specific post.
- This reply was modified 4 years, 11 months ago by Bastien.
I think you are right as there is a plugin or the theme which is interfering with this event.
Your snippet works perfectly. Thanks for it and for the awesome support.