Hello! Is there a website on wordpress + woocommerce. Installed the plugin Woo Gift : Advanced Woocommerce Gift Plugin
and faced the same problem. In the request with database of products
$args_post = array('post_type' => 'product','posts_per_page'=>-1);
$loop_post = new WP_Query( $args_post );
Directive display all of the elements 'posts_per_page'=>-1
sureset subsequent withdrawal of the plugin. If instead of -1 to assign 50 or 100, for example, all displays OK, but limited.
How to deduce all the elements of the sample?
z.s. interestingly, in the mirror on another hosting everything is OK and -1. . Maybe it's a problem on hosting?