I am using a view to list football games on tv and streaming. I have them sorting ascending by a custom date time field which works fine. I have a tv channel custom taxonomy and a streaming services custom taxonomy.
Ideally I would like to prioritize the order so matches with the same start time which has a tv channel set in the custom tv channel taxonomy will be shown before matches that only are on a streaming service.
I have attached a picture (danish website but I think you get the idea). So in that example 3 matches have tv channel logos but as you can see the second line entry without TV channel is shown in between.
So I was wondering if there is any way with custom code to do a secondary sorting that prioritize posts which has custom taxonomy value (TV channel)? I could only find a custom code example here on the forum which deals with secondary sorting by custom fields.
Hello. Thank you for contacting the Toolset support.
Well - there is no native way to sort your post by taxonomy term as post query and taxonomy query both are different.
This needs pure custom programming which is beyond the scope of our support policy. If you need custom programming for your project, pleases feel free to contact our certified partners:
=> https://toolset.com/contractors/
However, here is a link that may help you to build solution as per your requirement. hidden link