prefix."wpas_index"; $search_form_setting = $wpdb->get_row($wpdb->prepare("SELECT * FROM $search_form_table where id=%d", $search_form_id)); if($search_form_id == 0 || $wpdb->num_rows == 0) { _e("Search form not found !", 'advance-search'); exit; } $form_name = $search_form_setting->name; if($wpdb->num_rows > 0) { $settings = json_decode($search_form_setting->data, true); $args = array( 'public' => true, ); $advance_search_excludeTaxonomy = array('product_shipping_class'); // taxonomies args $taxonomies_args = array( 'public' => true, ); // append posts and pages to the post types. $post_types = get_post_types( $args, 'objects' ); unset($post_types['attachment']); // exclude attachment from loop $output = 'names'; // or objects $operator = 'and'; // 'and' or 'or' $taxonomies = get_taxonomies( $taxonomies_args, $output, $operator ); unset($taxonomies['post_format']); ?>