I want to ask how can sort the results of the advanced search page, ordered by price is my goal.
—answer—
Instruction after 1.10 theme update
In this case the place to edit is searchfunctions.php at line 307
‘meta_key’ => ‘prop_featured’,
‘orderby’ => ‘meta_value’,
‘order’ => ‘DESC’,
Also in advanced_Search_results.php you may need to remove the filters at line 96 : add_filter( ‘posts_orderby’, ‘wpestate_my_order’ );
Instruction before 1.10 theme update
advanced_search_results.php
Look for
'meta_key' => 'prop_featured',
'orderby' => 'meta_value',
'order' => 'DESC',
Replace with
'meta_key' => 'property_price',
'orderby' => 'meta_value_num',
'order' => 'ASC',
Make sure you write PHP, not copy/paste. So you don’t copy wrong formatting.
Modify in 2 places:
You also need to remove some ordering filters
add_filter( 'posts_orderby', 'wpestate_my_order' );