Function Reference: geodir_advance_search_field_option_values
Summary
This function has not been documented yet.
Source File
geodir_advance_search_field_option_values() is located in geodir_advance_search_filters/geodirectory_advance_search_function.php [Line: 1582]
Source Code
function geodir_advance_search_field_option_values($post_type, $htmlvar_name) { global $wpdb; $post_type = $post_type!='' ? $post_type : 'gd_place'; $sql = $wpdb->prepare("SELECT option_values FROM ".GEODIR_CUSTOM_FIELDS_TABLE." WHERE post_type = %s and htmlvar_name=%s ORDER BY sort_order",array($post_type, $htmlvar_name)); $option_values = $wpdb->get_var($sql); //$option_values = $option_values != '' && strstr($option_values,'/') ? explode(',', $option_values) : array(); return $option_values; }