1. Home
  2. Knowledge Base
  3. WooCommerce Product Filters
  4. Troubleshooting

WooCommerce Product Filters is breaking my pagination or products per page

If you notice that pagination, products per page, or infinite scroll is not working correctly when using WooCommerce Product Filters, this is usually due to a plugin or theme conflict.

Why this happens

WooCommerce Product Filters uses its own query system to load filtered results via AJAX.
Because of this, it does not work reliably with plugins or themes that modify:

  • Products per page
  • Pagination behavior
  • Infinite scroll / load more functionality
  • Custom query loops

These features often override or conflict with the filter query, which can lead to:

  • Incorrect number of products displayed
  • Pagination not updating properly
  • Infinite scroll breaking or not loading correctly

To ensure WooCommerce Product Filters works correctly:

    • Avoid using plugins that change the number of products per page.
    • Avoid infinite scroll or AJAX pagination plugins.
    • Use WooCommerce’s default pagination wherever possible.

Forcing a fixed number of products per page

If you need to control the number of products shown on filtered results, you can use the following custom code:

add_filter( 'wcf_renderer_query_posts_per_page', 'my_wcf_renderer_query_posts_per_page', 10, 2 );
function my_wcf_renderer_query_posts_per_page( $posts_per_page, $renderer ) {
return 14;
}
add_filter( 'wcf_query_posts_per_page', 'my_wcf_query_posts_per_page', 10, 2 );
function my_wcf_query_posts_per_page( $posts_per_page, $query ) {
return 14;
}

What this code does

  • Forces the filtered results to always show a fixed number of products (e.g. 14)
  • Overrides the theme or plugin “products per page” setting on filtered pages
  • Ensures consistent behavior for filter results

This is expected behavior because the filter system controls its own query.

Important note

This code is a custom workaround and may not work in all setups.
Its behavior can vary depending on:

  • Your theme
  • Other active plugins
  • Custom WooCommerce modifications

If you're unsure whether this approach will work for your specific setup, please contact our support team and include details about your theme and plugins.

Summary

WooCommerce Product Filters may conflict with plugins or themes that modify pagination or products per page. For best results, avoid using these features alongside filtering, or use custom code to enforce a

Related Articles

If searching the knowledge base hasn't answered your question, please contact support.