# More Products per Page on Search Results

> Shows a different number of products on product search results than on normal shop pages, so shoppers see more matches at once.

- Type: PHP
- Runs: Run everywhere
- Category: [WooCommerce](https://wpide.com/library/category/woocommerce/)
- Requires: WooCommerce
- Tags: woocommerce, search, pagination
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/woo-search-results-per-page/

## Code

```php
$wpide_search_per_page = 36; // Products per page on search results.

add_filter( 'loop_shop_per_page', function ( $per_page ) use ( $wpide_search_per_page ) {
    return is_search() ? $wpide_search_per_page : $per_page;
}, 20 );
```

## Notes

Only affects product searches; shop and category pages keep their own setting.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "More Products per Page on Search Results" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
