Sorting according to two separate taxonomies
-
Hello
I have not been able to work something out, trying many different ways. I hope you can help.
There is a post type: Wine
Each wine has two associated taxonomies: Wine Type & Wine RegionWine Type:
– Red
– White
– RoseWine Region:
– Italy
— Toscana
– Frace
— LoireExample: Good Wine | Rose | Toscana
Now, the out put layout should be:
*** ROSE (wine type) ***
Italy (region taxonomy parent)
– Toscana (region taxonomy)
— Good Wine (post)
— Better Wine
– Rome
— Nice Wine
France
– Loire
— French Wine 1
— French Wine 2*** Red Wine ***
Italy (region taxonomy parent)
– Toscana (region taxonomy)
— Good Red Wine (post)
— Better Red Wine
– Rome
— Nice Red Wine
France
– Loire
— French Red Wine 1
— French Red Wine 2
etc..1- I could not figure out how to use orderby taxonomy in a loop.
2- It seems like nested [for] is not working if taxonomies are different. I have tried creating shortcodes and they do not work.
3- I could not find out how to get the parent of an associated taxonomy. If a wine’s taxonomy is Toscana, how can I have Italy (the parent) as output?Any kind of help will be appreciated.
- The topic ‘Sorting according to two separate taxonomies’ is closed to new replies.