Function Reference: geodirectory_advance_search_custom_fields
Summary
This function has not been documented yet.
Source File
geodirectory_advance_search_custom_fields() is located in geodir_advance_search_filters/geodirectory_advance_search_function.php [Line: 151]
Source Code
function geodirectory_advance_search_custom_fields($fields,$listing_type){ global $wpdb; $records = $wpdb->get_results( $wpdb->prepare("select id,field_type,data_type,site_title,htmlvar_name from ".GEODIR_CUSTOM_FIELDS_TABLE." where post_type = %s and cat_filter=%s order by sort_order asc",array($listing_type, '1'))); foreach($records as $row){ $field_type = $row->field_type; if($row->field_type =='taxonomy'){$field_type ='taxonomy';} $fields[]= array('field_type'=>$field_type,'site_title'=>$row->site_title,'htmlvar_name'=>$row->htmlvar_name,'data_type'=>$row->data_type); } return $fields; }