How Do I Change the Number of Products Per Page in WordPress?

If you’re using WordPress to run your online business, you likely have a page template that looks something like the following:

You might also have a category or tag template that looks something like this:

In both cases, you probably want to be able to change the number of products per page. There are a few different ways to do this.

Method One: Changing the Number of Products per Page in the Page Template

The first way to change the number of products per page is to change the number of products in the page template. To do this, open the page template in your WordPress editor and locate the

and
tags. In the header, add the following code:

In the footer, add the following code:

Now, in the tag, add the following code:

Save the page template and you’re done.

Method Two: Changing the Number of Products per Page in the WordPress Theme

The second way to change the number of products per page is to change the number of products in the WordPress theme. To do this, open the theme in your WordPress editor and locate the and tags. In the head, add the following code:

In the body, add the following code:

Save the theme and you’re done.

Method Three: Changing the Number of Products per Page in the WordPress Database

The third way to change the number of products per page is to change the number of products in the WordPress database. To do this, open the WordPress database in your WordPress editor and locate the wp_options table. In the wp_options table, add the following code:

define(‘WP_PRODUCTS_PER_PAGE’, ‘5’);

Now, in the WordPress database, update the number of products per page to the value you want. Save the database and you’re done.

Conclusion

There are three different ways to change the number of products per page in WordPress. Method one is to change the number of products in the page template.

Method two is to change the number of products in the WordPress theme. Method three is to change the number of products in the WordPress database.