0

I have WooCommerce installed and I'm trying to find products with size "60x60". Sometimes in title were used normal x symbol and sometimes it's a cyrillic х. Now i'm trying to find all products with both symbol and I get different results. I run 3 query:

$both = wc_get_products( array( 's' => '60x60+60х60', 'limit' => -1, 'category' => array( $category->slug ) ) );
$english_x = wc_get_products( array( 's' => '60x60', 'limit' => -1, 'category' => array( $category->slug ) ) );
$cyrillic_x = wc_get_products( array( 's' => '60х60', 'limit' => -1, 'category' => array( $category->slug ) ) );

Result counts are:

$both = 94 
$english_x = 94 
$cyrillic_x = 231

Why is that? Shouldn't $both be at least 231? Why 2 terms returns less amount then one of them? Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.