The order parameter is not available for request and vendor categories

Hi there,

Would you please consider adding category order parameter to HivePress Requests? I used the PHP snippet provided by you in a previous conversation

add_filter(
	'hivepress/v1/meta_boxes',
	function( $meta_boxes ) {
		$meta_boxes['request_category_settings'] = [
			'screen' => 'request_category',

			'fields' => [
				'sort_order' => [
					'label'     => 'Order',
					'type'      => 'number',
					'min_value' => 0,
					'default'   => 0,
					'required'  => true,
					'_order'    => 20,
				],
			],
		];

		return $meta_boxes;
	}
);

However, the result was not what I expected. The code added the meta box, where I was able to insert the order number, but the categories maintained their alphabetical order. As a workaround, now I use a third-party plugin to achieve the desired effect - Custom Taxonomy Order

Thank you!

Thank you for your feedback. We are planning to address this issue as soon as possible, and it will be fixed in the core HivePress update. The problem also affects vendor categories, so the fix will cover everything.

Thanks for providing a possible workaround.

I appreciate your answer and the fact that you are actively tracking this issue. Well… my temporary solution, provided by the Custom Taxonomy Order plugin, is not always working (it works only for parent categories).

Lately, I have encountered something really strange related to this order issue: most of my Request categories have subcategories that have attributes with (ordered) options. One of my attributes has 16 options from which I manage to order only 15, and the 16th went (rogue) first and doesn’t respond to any order attempt. :sweat_smile:

Having this order issue solved as soon as possible would make my (and maybe other users’) lives way easier!

1 Like

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