Split WooCommerce Category Items into Multiple Pages/ Integrity Stack

Hi!

I have successfully added products to my store and have been able to separate products from specific categories whereas they only appear on certain pages. The issue is after 12 items are added to a single page no other items appear. I am okay with 12 items appearing on a page for a specific menu item.

For instance, The page Women has 12 items from the category women that appear on (page 1). How do I get additional items 13-24 to appear under the same category but on (page 2) under women and items 25-36 to appear under women but on (page number 3)? In other words, I want the items to paginate automatically after 12 items no matter how many pages.

I am using this shortcode [product_category category=”women” orderby=”date”] to make items from a specific category appear on a specific page.

However, pagination automatically appears on the shop page without this CSS

Blockquote
.my-shop-page .page-numbers {display:none}

My website isn’t live so please log in.

Hi @fantasy_5,

You can use the page & per_page attributes to achieve that. So the shortcodes will be:

  • Women Category 0-12 products: [products category="women" page="1" per_page="12"]
  • Women Category 13-24 products: [products category="women" page="2" per_page="12"]
  • Women Category 25-36 products: [products category="women" page="3" per_page="12"]

For more information, please take a look at this:

Hope it helps :slight_smile:

1 Like

Hello, Thai!

Thanks for your help. I edited the code like this in order to paginate. It puts 12 items on each page. So far under the women’s category, I have only 15 items. I will do 36 to ensure it will work for pages 1,2 and three. On page 1 all 12 items appear. In the screenshot appears items 13-15 since I only have a total of 15 items for now. I will also try the code on other pages where per category items are set up.

Blockquote
[products category=“women” orderby=”date” order=‘ASC’ paginate=true page=“3” per_page=“12”]

My original code to display products per category was this

Blockquote
[product_category category=”women” orderby=”date”]

I also read in another thread that you can also set up the items per product ID and paginate them. I’ll test it at a later date.

Blockquote
[products ids=‘4075,4077,4079,4084,4052,4096,4057,4064’ columns=‘2’ order=‘ASC’ paginate=true per_page=2]

Hi @fantasy_5,

You’re welcome! And yes, it will display the first set or per_page, and other remaining items to the next page which 3 since first page us 12 (from 15 items). And yes, please test it with more items.

Thanks!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.