Join our new community forum for support & discussion

Join Now

Home Support Themes RentalHive Switching ways categories are displayed on search page

Switching ways categories are displayed on search page

  • Author
    Posts
  • rachelle

    Hello!

    is there a way to switch the ways the categories are displayed in the left hand menu of the search page? Right now mine are shown as radio buttons but I’d like them to be a select menu instead. I just can’t see to find out where to change it.

    Thanks so much!

    yevhen developer

    Please try this PHP snippet

    add_filter(
    	'hivepress/v1/forms/listing_filter',
    	function( $form_args, $form ) {
    		
    		if(isset($form_args['fields']['_category'])){
    			$form_args['fields']['_category']['type'] = 'select';
    		}
    
    		return $form_args;
    	},
    	1000,
    	2
    );
Viewing 2 posts - 1 through 2 (of 2 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.