How to change the order of items in a listing filter?

I want to change the order of items in a listing refinement search.

But I can’t know what i write to functions.php.

In detail ,I want to change that Category is top , attribute is second and tags is final.

But now, Category is top, tags is second and attribute is final.

Please teach me.

p.s I’m sorry, I translated japanese.


Please use this PHP snippet, it changes the order for tags:

			$form['fields']['tags']['_order'] = 100;
		return $form;

Please note that it can require further customization. Also, for snippets, we do not recommend modifying the theme files, as they will be overwritten after our update, please check this doc How to add custom code snippets - HivePress Help Center

​I hope this is helpful to you.

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