How to Fix Woocommerce Shop Page Showing Only 2 Products

Is your WooCommerce shop page displaying only two products? This quick tutorial will shows you how to fix it step by step. Perfect for beginners and store owners looking to restore full product listings fast. Watch now and get your shop back on track!

Code Used:

add_action( 'woocommerce_product_query', 'change_posts_per_page', 999 );
function change_posts_per_page( $query ) {

    if( is_admin() )
        return;

    $query->set( 'posts_per_page', 30);
    
}
Share Post:

Join My Newsletter

Get expert tips, handy tools, and helpful tutorials delivered straight to your inbox absolutely free.

NewsLetter Form

Your privacy is important to me. Rest assured, your email address will remain completely confidential and will not be shared with any third party