Search results for: ""

- 1, 'post_type' => 'ac_product', 'orderby' => 'title', 'order' => 'ASC', 'catalog_item_title' => $search, 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'ac-product-details', 'value' => $search, 'compare' => 'REGEXP' ) ) ); $wp_query = new WP_Query( $args ); // If no posts we search in taxonomies if ( ! $wp_query->have_posts() ) { $args = array( 'posts_per_page' => - 1, 'post_type' => 'ac_product', 'orderby' => 'title', 'order' => 'ASC', 'tax_query' => array( 'relation' => 'OR', array( 'taxonomy' => 'ac_product_tag', 'field' => 'slug', 'terms' => array( $search ) ), array( 'taxonomy' => 'ac_product_cat', 'field' => 'slug', 'terms' => array( $search ) ), ) ); $wp_query = new WP_Query( $args ); } $count = count( $wp_query->posts ); ?>

Found:

have_posts() ) : ?> have_posts() ) : $wp_query->the_post(); ?>

No results...

image_sizes->thumbnail->url; echo ''; } } else { echo ''; } ?>
get( 'catalog_item_title' ) ) { $where .= ' OR ' . $wpdb->posts . '.post_title LIKE \'' . esc_sql ( $wpdb->esc_like( $catalog_item_title ) ) . '%\''; } return $where; } add_filter( 'posts_where', 'ac_change_posts_where', 10, 2 );