Multiple Catogries

I would like users to be able to select multiple categories when adding a listing.

Currently it only lets them pick one but if after they have made the listing I go onto the listing in WordPress backend I can add multiple.

Please note that categories are used as distinct criteria, many features rely on this (e.g. category-specific attributes and search filters). Please consider using a custom Select attribute with the Multiple option enabled if selecting multiple items is required.

It is possible to try to use this PHP snippet but please note that it can require further customization and additional testing

add_filter(
	'hivepress/v1/forms/listing_submit',
	function( $form ) {
		if(isset($form['fields']['categories'])){
			$form['fields']['categories']['multiple'] = true;	
		}
		return $form;
	},
	1000
);

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