WooCommerce : How to change the number of products on shop page in woocommerce.

Web Development

WooCommerce : How to change the number of products on shop page in woocommerce.

WooCommerce is one of the most powerful e-commerce plugin for WordPress.And what i love with WooCommerce is that there’s an API for nearly everything.There are almost Hooks and filters For Every Customization work.

In order to change the number of products per page on shop page, you have to use 'loop_shop_per_page' hook.

In our example, we set number of products per page to 10. If you want a different number, just change Return value.

function change_WC_products_per_page() {
return 10;
}
add_filter( 'loop_shop_per_page', 'change_WC_products_per_page', 20 );

Enjoy

Shiv kumawat

Executive Director & CEO

"Shiv kumawat is the Executive Director and CEO of Eoxys It Solution LLP and the strategic mind behind the company"s growth. His expertise in operational efficiency and team leadership empowers his colleagues to excel and innovate.”

Latest Posts

Smarter Learning for a Smarter Era: How AI Is Transforming Learning Management Systems (LMS) in 2025

  Smarter Learning for a Smarter Era: How AI IsTransforming Learning Management Systems(LMS) in 2025 From Static Systems to Intelligent…

Shafeeq Khan
October 3, 2025

AI Overviews and Google Search: What Businesses Need to Know in 2025

  AI Overviews and Google Search: What Businesses Need to Know in 2025 Entering the Age of AI Overviews The…

Shafeeq Khan
September 23, 2025

Ride Smarter: How AI Is Transforming Cab Apps in the USA for 2025

  Ride Smarter: How AI Is Transforming Cab Apps in the USA for 2025 The New Pulse of Urban Travel…

Shafeeq Khan
September 20, 2025
, ,

One response to “WooCommerce : How to change the number of products on shop page in woocommerce.”

Leave a Reply

Your email address will not be published. Required fields are marked *