#4448
bobfvp
Member

Hopefully, more info will get an official solution faster?

-It seems that every time the listings are displayed the process_listings_results function (bepro_listings_frontend.php) is being called twice.

-The first time it is called from bepro_generate_map function but since only 4 parms are passed the order_by parm is defaulting to “1”.

-The second time it is called from display_listings function wich passes all 6 parms. The order_by value is being retrieved via this line of code:
‘order_by’ => $wpdb->escape($_POST[“order_by”]),

– This line of code returns “1” when the webpage is initially displayed.
– This line of code returns “” when the webpage is displayed after the Search button is pressed. This causes the default sort to be used (sort by date).