Hi.
We are trying to port an access database to Toolset. We run into a problem filtering and grouping the searchresults according the category title. hidden link (search for Lieferanten) we would like to get the same view. Ist this possible to achieve with the toolset funcionality without hardcoding it, resp. changes in the Toolset Code?
Thanks a lot and kind regards.
Renato
Hello,
Toolset plugins are WordPress plugin, they can handle WordPress data, they can not handle data outside WordPress.
In your case, you might consider to import data into WordPress:
https://toolset.com/course-lesson/how-to-import-content-into-wordpress-using-csv/
Then follow our document to setup the custom search form:
https://toolset.com/course-lesson/creating-a-custom-search/
Hi.
Thanks for your reply. All our data is in WordPress, we imported it via csv. But my developer claims that he cannot sort the search results by category as you can see in my attached screenshot. According to him it would be necessary to "hack" Toolset and hardcoding this function because Toolset is unable to do this. I would like to know from you guys if this is the case. It strikes me as a bit odd that Toolset would not enable such a basic operation?
Thanks so much for looking into it.
Kind regards
Renato
That is built-in feature of Toolset Blocks/Views plugin: search by taxonomies,
please follow the document I mentioned above to setup custom search form:
https://toolset.com/course-lesson/creating-a-custom-search/
See my screenshot taxonomy-filter.JPG
Hi,
sorry didn't see your reply.
We have a search by taxonomy, that is not the issue here. We are searching for all products from one supplier and additionally the search results should be grouped by categories. Is this possible with Toolset?
Thanks for your help.
Your developer is right, Toolset is using WordPress class WP_Query to query posts, see WP document:
https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters
There isn't any option to sort the result by taxonomy.
In your case, you can consider nested views.
See our document:
https://toolset.com/documentation/user-guides/views/using-a-child-view-in-a-taxonomy-view-layout/
But there will be some limitations, for example:
- The parent taxonomy view will outputs all terms, including those terms without posts
- The AJAX search won't work as expected.
My issue is resolved now. Thank you!