Ricerca avanzata

Ricerca nel catalogo

Nome
Paese
Valore
Anno
Zecca
Rarità
Conservazione

(int) get_option('boutique_searchnum_posts'), 'paged' => $paged, 'offset' => $offset ); unset($recent_products_args['category__not_in']); if(!empty($_REQUEST['nome'])){ function filter_where( $where = '' ) { $where .= " AND post_title like '%".$_REQUEST['nome']."%'"; return $where; } add_filter( 'posts_where', 'filter_where' ); } if(!empty($_REQUEST['paese'])){ $recent_products_args['meta_query'][] = array( 'key' => 'paese', 'value' => $_REQUEST['paese'], 'compare' => 'like', 'type' => 'char' ); } /*if(!empty($_REQUEST['re'])){ function filter_where( $where = '' ) { $where .= " AND post_title like '%".$_REQUEST['re']."%'"; return $where; } add_filter( 'posts_where', 'filter_where' ); }*/ if(!empty($_REQUEST['valore'])){ $recent_products_args['meta_query'][] = array( 'key' => 'valore', 'value' => $_REQUEST['valore'], 'compare' => 'like', 'type' => 'char' ); } if(!empty($_REQUEST['anno'])){ $recent_products_args['meta_query'][] = array( 'key' => 'data_emissione', 'value' => $_REQUEST['anno'], 'compare' => 'like', 'type' => 'char' ); } if(!empty($_REQUEST['zecca'])){ $recent_products_args['meta_query'][] = array( 'key' => 'zecca', 'value' => $_REQUEST['zecca'], 'compare' => 'like', 'type' => 'char' ); } if(!empty($_REQUEST['rarita'])){ $recent_products_args['meta_query'][] = array( 'key' => 'rarità', 'value' => $_REQUEST['rarita'], 'compare' => '=', 'type' => 'char' ); } if(!empty($_REQUEST['conservazione'])){ $recent_products_args['meta_query'][] = array( 'key' => 'conservazione', 'value' => $_REQUEST['conservazione'], 'compare' => '=', 'type' => 'char' ); } query_posts($recent_products_args); remove_filter( 'posts_where', 'filter_where' ); if ( is_category() ) { $et_blog_categories = get_option('boutique_blog_categories'); if ( 'wp_ecommerce' == $boutique_active_plugin_name || ( $et_blog_categories !== false && in_array( $cat, $et_blog_categories ) ) ) $et_is_blog_category = true; } if (have_posts()) : while (have_posts()) : the_post(); $i++; if ( $et_is_blog_category ) boutique_display_blogpost(); else boutique_display_product($i,'entry'); endwhile; if (function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>