Click directly to category submission without dropdown selection

I know a Hivepress update last year streamlined the category selection by bypassing the grid selection page and moving it to a dropdown in the listing details.

I only have 2 categories

Each category page has a description with a button on that page that links directly to the category page for submitting listing details

  1. For Sale links to /submit-listing/category/41/
  2. For Rent links to/submit-listing/category/42/

I have used this Github code to revert to the old category selection because it allows the dropdown to already be pre-selected:

But is there a way to eliminate the dropdown selection field so the user cannot change the category on the submit details page?

Hi,

Please try this PHP snippet:

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

		return $form;
	},
	1000
);
1 Like

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