Why wrong works cycle Wordpress with Woocommerce plugin?

The problem is this, if the loop write this:
<?php $country = new WP_Query( 
array(
 'post_type' =--> 'product',
 'posts_per_page' => 10, 
'orderby' => array( 'title' => 'ASC', 'menu_order' => 'ASC' )
)
); ?>

 <?php while ( $country--->have_posts() ) : $country->the_post(); ?>
 
> <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : ?>
It displays the content like so:
5b5106762e2ba468341509.png
(should display horizontally)
If you comment out the loop, it displays as it should, what's the problem?)
June 3rd 19 at 19:33
1 answer
June 3rd 19 at 19:35
Hello!
Not sure what the problem is in the loop, since you only provided a code fragment...

To assume the following...

>
He wraps each item in this block, as it is in the cycle and, respectively, after each CSS element on a new line.
Check the CSS of this diva... there's the idea you have now should be something like display:block; width:100% etc.

Find more questions by tags WordPressWooCommerce