Troubleshooting

Pagination is broken, or shows the wrong number of products per page

Published

If pagination shows a fake page count, sends page 2 back to page 1, or the archive ignores your products-per-page setting, the usual cause is Scalability Pro’s “Remove SQL_CALC_FOUND_ROWS” option, which stops the database counting total rows, so SSF fakes the total. Disable that Scalability Pro option to restore accurate pagination, or pair it with an infinite-scroll plugin and change the page-count text. Don’t remove the 404 on out-of-range pages – infinite scroll relies on it to know when to stop. To fix products-per-page (e.g. Divi always showing 12), set it in Customizer > WooCommerce, or force it with a filter:

add_filter('loop_shop_per_page', function($cols) {
    return get_option('woocommerce_catalog_rows_per_page', 12);
}, 999);

Still stuck? Post a screenshot on our Discord.

Further reading

every other known problem and its fix.
setting up and configuring the filters.

Comments