‘product’, ‘meta_query’ => array( array( ‘key’ => ‘_ingredients’, ‘value’ => sanitize_text_field( $_GET[‘ingredientes’] ), ‘compare’ => ‘NOT LIKE’ ) ) ); $query = new WP_Query( $args ); if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); wc_get_template_part( ‘content’, ‘product’ ); } wp_reset_postdata(); } else { echo ‘No se encontraron productos.’; } } ?>