Remove the “Category” field in add listing form

Hola…uso ListingHive
I have removed the “Category” field with this code, on the create Listing page

add_filter(
	'hivepress/v1/forms/listing_submit',
	function( $form ) {
		unset($form['fields']['categories']);	

		return $form;
	},
	1000
);
add_filter(
	'hivepress/v1/models/listing',
	function( $args ) {
		$args['fields']['categories']['required'] = false;
		
		return $args;
	},
	1000
);

The problem it causes is when I am on the packages page. Clicking on “Change details” does not work, it does not go back.
How could it be solved?

Hi,

Please disable third-party plugins and customizations (if there are any) and check if this issue persists. If you use a caching plugin, make sure that caching is disabled for logged-in users. Also, please refresh the permalinks: How to refresh WordPress permalinks - 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.