How to move tags or an specific category to the top

Hi how can I move tags or an specific category to the top or change the order in which they are placed on the filter bar.

Please try this PHP snippet to move the tags field to the top. In this way, it is possible to change the order for other fields in the listing filter form

add_filter(
	'hivepress/v1/forms/listing_filter',
	function( $form ) {
		if ( isset( $form['fields']['tags'] ) ) {
			$form['fields']['tags']['_order'] = 1;
		}

		return $form;
	},
	1000
);

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