Your address will show here +12 34 56 78
#101481

Gabriel
Participant

Hi Anna,

I did a bit of coding to be able to add sorting criterias by modifying :
– property_list_filters_search.php
– ajax_functions.php

When I select my new filter (property_city) I have a “no results found”. What I don’t understand is that just changing to “price” sorting option I have results. I compared the arrays of arguments for the queries and the only difference is on the sorting options ([meta_query] is the same, not modified) :
WORKS :
[meta_key] => property_price
[orderby] => meta_value_num
[order] => DESC

NO RESULTS :
[meta_key] => property_city
[orderby] => meta_value
[order] => ASC

Is something missing ?

Thanks for your help