Website Building » WooCommerce » Can You Have Multiple Shop Pages in WooCommerce?

Can You Have Multiple Shop Pages in WooCommerce?

Last updated on January 17, 2023 @ 1:15 pm

Many people who use WooCommerce to set up their online stores wonder if they can have multiple shop pages. The answer is yes! Here’s how:

First, you’ll need to create a new page in WordPress and then add the following code to the page:

$args = array(
'post_type' => 'product',
'posts_per_page' => 12 );
$loop = new WP_Query( $args );
if ( $loop->have_posts() ) {
while ( $loop->have_posts() ) : $loop->the_post();
woocommerce_get_template_part( 'content', 'product' );
endwhile;
} else {
echo __( 'No products found' );
}
wp_reset_postdata();

This code tells WooCommerce to display 12 products on the page. You can change this number to display more or less products per page.

PRO TIP: If you are thinking about creating multiple shop pages in WooCommerce, be aware that this is not a good idea. While it is possible to do this, it can cause problems with your site’s performance and search engine optimization.

Once you’ve added this code to the page, you can then set this page as your “Shop” page in the WooCommerce settings. To do this, go to WooCommerce > Settings > Products and then select the “Display” tab.

On this tab, you’ll see an option to set the “Shop Page”. Select the page you just created from the dropdown menu and then save your changes.

And that’s it! You now have a second shop page on your WooCommerce store.

Dale Leydon

Dale Leydon

Sysadmin turned Javascript developer. Owner of 20+ apps graveyard, and a couple of successful ones.