Remove the 'SORT BY' field on the listing search page

Is there a way to hide ‘SORT BY’ on the listing search page?

In particular, I want to delete the ‘date’, ‘title’ and ‘price’ fields, as they don’t make sense on my site.

Please try this PHP snippet

	function( $form ) {
		unset( $form['fields']['_sort']['options']['title'], $form['fields']['_sort']['options'][''], $form['fields']['_sort']['options']['price__asc'], $form['fields']['_sort']['options']['price__desc']);

		return $form;
1 Like

Thank you for your help!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.