Sorting query_posts() with a complex orderby filter
Managed to solve my issue. I was missing the meta_key param in the args of my query_posts function. Here it is with the fixed version : $args = array( ‘post_type’ => ‘property’, ‘posts_per_page’ => 20, ‘meta_key’ => ‘my_meta_key’, ‘paged’ => ( get_query_var(‘paged’) ? get_query_var(‘paged’) : 1) );