Adding additional sorting options to results pgae
-
I’m looking to add the ability to sort the search results by address alphabetically, at present the default options are date and price asc/dsc. I can see an array of options in search/orderby.php:
$results_orderby = apply_filters( 'propertyhive_results_orderby', array( 'price-desc' => __( 'Default sorting', 'propertyhive' ), 'date' => __( 'Sort by date added', 'propertyhive' ), 'price-asc' => __( 'Sort by price: low to high', 'propertyhive' ), 'price-desc' => __( 'Sort by price: high to low', 'propertyhive' ) )Is it possible to add my own to this, specifically alphabetically by address?
Thanks,
Jonny
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Adding additional sorting options to results pgae’ is closed to new replies.