Query two post types and order by two different date fields
I solved it with a bit of JS instead. Queried the two post types in a merged query and outputted each item with a ‘data-sort’ tag on each element. Then sorting the elements independently. $archive_items.sort(function(a,b) { var an = a.getAttribute(‘data-sort’), bn = b.getAttribute(‘data-sort’); if(an < bn) { return 1; } if(an > bn) { return … Read more