Function Reference: geodir_advance_search_available_fields

Summary

This function has not been documented yet.

Source File

geodir_advance_search_available_fields() is located in geodir_advance_search_filters/geodirectory_advance_search_function.php [Line: 351]

Source Code

function geodir_advance_search_available_fields(){

	global $wpdb;
	$listing_type	= ($_REQUEST['listing_type'] != '') ? esc_attr($_REQUEST['listing_type']) : 'gd_place';
	
	$allready_add_fields =	$wpdb->get_results("select site_htmlvar_name from ".GEODIR_ADVANCE_SEARCH_TABLE."     where post_type ='".$listing_type."'");

	$allready_add_fields_ids = array();				
	if(!empty($allready_add_fields))
	{
		foreach($allready_add_fields as $allready_add_field)
		{
			$allready_add_fields_ids[] = $allready_add_field->site_htmlvar_name;
		}
	}	
	?>
	
	
	
  • >