I have a query for custom posts and I have managed to order the results alphabetically based on the title first then a 2nd alphabetical ordering of the 1st of 2 meta keys "Species". This works great. But i also want to order the 2nd meta key as well.
<?php $posts = query_posts($query_string . '&meta_key=Species&orderby=title+meta_value&order=ASC'); ?>
The problem is that is would like to also order by a 2nd meta key called "Variety" so in my mind the query might look something like this but of course it doesn't work.
<?php $posts = query_posts($query_string . '&meta_key1=Species&meta_key2=Variety&orderby=title+meta_value1+meta_value2&order=ASC'); ?>
Further searching has revealed something called meta_query, is this something that may help?