Filter by Marketing flag
-
Hi, thanks again for your help on my previous question. I have one more question if that’s okay… I am trying to add a checkbox to a particular search form that would filter by Marketing flag. In this case to exclude “Let Agreed”. I have cobbled together the below but it returns no results when checked. Can you steer me in the right direction if possible? Many thanks!
add_filter( 'propertyhive_search_form_fields_residential', 'edit_residential_property_search_form_fields', 101 ); function edit_residential_property_search_form_fields($fields) { $fields['marketing_flag'] = array( 'type' => 'checkbox', 'value' => 73, // Let agreed marketing flag ID 'label' => 'Exclude Let Agreed' ); return $fields; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Filter by Marketing flag’ is closed to new replies.