Forums › Forums › Search & Filter Pro › Group by Taxonomy
Tagged: taxonomy orderby groupby
- This topic has 6 replies, 2 voices, and was last updated 6 years, 4 months ago by
Trevor.
-
Anonymous(Private) September 10, 2018 at 7:30 am #187830
Hi-
Great product. Saved my life.
I implemented it on a Real Estate Site. I included several Taxonomies to include, however, I need to group them by each Taxonomy that I have included.
Can you recommend how to do this with your product. I need to group For Sale, In Escrow, etc.
https://www.carswellandpartners.com/listing-portfolio-search/
Trevor(Private) September 10, 2018 at 5:15 pm #187926It would be necessary to sort the results first. However, you want something other than alphabetical or numerical, so first you must create a (maybe calculated) field that looks at the categories and assigns a number as the sort order, using javascript hooking into the WordPress save_post() function (and you would have to edit existing posts to add the data. A primary sort would be based on this in our ‘Posts’ tab, and then a secondary sort for how you want them sorted with the groups.
As you are using our shortcode method and therefore have already customised the results.php, you would need to code so that as it loops through the posts it checks the current category and correctly adds beginning and ending HTML and titles for each category group. Very customised, but possible.
Anonymous(Private) October 28, 2018 at 7:19 pm #191981I am still scratching my head on this one.
I installed the Advanced Taxonomy Terms plugin and placed the terms in manual sort order but it isn’t working with S&F.
Is there a trick to this that will make it work?
Don’t really have the advanced programming skills to pull it off and thought this would work since it works with general post listings.
Thanks!
Trevor(Private) October 29, 2018 at 12:23 pm #192030Plugins that allow you to change the display order of posts, taxonomies and terms do not work with our plugin. Indeed, they can cause problems (invalid results).
If the values are in a Custom Field (Post Meta), our plugin allows you to manually specify the order in which they appear, but not for taxonomy terms.
-
AuthorPosts