Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Merv Barrett

    (@mervb1)

    These are not the default Easy Property Listings categories. Which means you have added a custom filter and added the customisations with an error.

    What is the custom code filter you are using?

    Thread Starter karlosuccess

    (@karlosuccess)

    This is what I am using, please help:

    
    function my_epl_add_details_fields($group) {
    	//print_r($group);
    	
    	$cust_cats = array( 
    		'cheap-houses' => 'Cheap House', 
    		'homes' => 'Home', 
    		'ranches' => 'Ranch',
    		'commercial-buildings' => 'Commercial buildings',
    		'industrial-buildings' => 'Industrial buildings',
    		'multi-family' => 'Multi family',
    		'mobile-homes' => 'Mobile homes',
    		'distressed' => 'Distressed',
    		'fix-n-flip' => 'Fix n flip',
    		'owner-finance-deals' => 'Owner finance deals',
    		'cashflow-n-rental' => 'Cashflow n rental',
    		'bulk-packages' => 'Bulk packages',
    		'new-construction' => 'New construction',
    	);
    	
    	foreach( $group['fields'] as $i => $field ):
    	
    		if( $field['name'] == 'property_category' ):
    	
    			$group['fields'][$i]['type'] = 'checkbox'; // addding custom categories required by LandCentury
    			$group['fields'][$i]['opts'] = $cust_cats; // addding custom categories required by LandCentury
    			break;
    	
    		endif;
    	
    	endforeach;
    		
    	return $group;
    }
    add_filter('epl_meta_groups_listing_type', 'my_epl_add_details_fields');
    

    thank you

    Plugin Author Merv Barrett

    (@mervb1)

    Please reach our to our support desk for advanced coding help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search Form -> House Category: displaying repeated categories’ is closed to new replies.