Salve a tutti.
Ho un custom post type chiamato ‘progetti’.
Ogni custom post “progetti” has 4 custom fields:
Faccio una query per creare una taxonomy page per mostrare tutti i custom post con un certo custom field “tipo”.
Poi li voglio mostrare ordinati per il campo “anno” e poi per “mese”.
Se faccio cosà¬
query_posts($query_string. '&orderby=meta_value&meta_key=year&order=DESC&posts_per_page=-1' )
riesco ad ordinarli per anno.
E' possibile ordinare la pubblicazione per due campi?
Grazie mille
.M