Disable listing category from Add Listing page

On our listing page, I don’t want to use categories. I’ve seen other questions on how to disable some categories, but not all of them.

Can I use a snip with PHP to make it not a required field?
If categories are mandatory, how can I make my single listing category selected by default, so I can hide it with CSS?



Please try this PHP snippet:

// Remove Category field from listing submit form
	function( $form ) {

		return $form;

You must make additional customizations if you want the category selected by default.
If customizations are required for your site, please try customizing it using the collection of code snippets Search · user:hivepress · GitHub and other developer resources, or consider hiring someone for custom work https://fvrr.co/32e7LvY

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