• Resolved learner79

    (@learner79)


    Hi there,

    Having installed and setup WooCommerce on my WordPress installation, I created two pages titled ‘women’ and ‘men’. Using the WP block editor, I clicked on the Block tab and scrolled to ‘WooCommerce’, once there I inserted ‘All Products’ and hit save. I did this to both the men’s page and the women’s page.

    I’m trying to make the men’s page display the men’s products and the women’s page to display the women’s products.

    In the WP Dashboard, I clicked on ‘Products’ which is underneath ‘WooCommerce’ and created two categories (one for men and one for women) and placed the product items according to the categories. However, the men’s page still shows the women’s products and the women’s page shows the men’s products. How can I solve this issue? Grateful for your guidance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    It sounds like you are encountering a common issue when setting up WooCommerce product category pages. By default, WooCommerce’s “All Products” block doesn’t automatically filter products based on the category of the page it’s placed on. You’ll need to use a different approach to achieve the desired outcome of displaying men’s products on the “men” page and women’s products on the “women” page.

    Here’s how you can set up the category-specific product displays:

    1. Create Category Pages:
      Instead of creating separate pages for “women” and “men”, you can use the default category archive pages that WooCommerce provides. WooCommerce automatically generates category archive pages for your product categories. The URLs for these pages typically look like this:
    • For Women’s Products: https://yourwebsite.com/product-category/women
    • For Men’s Products: https://yourwebsite.com/product-category/men
    1. Assign Products to Categories:
      Make sure that you have correctly assigned each product to its respective category. In the WordPress dashboard, go to Products > Categories and ensure that each product is assigned to the appropriate category (e.g., “women” or “men”).
    2. Update Men and Women Pages:
      To make the “women” page display women’s products and the “men” page display men’s products, you can link to the respective category archive pages.
    • On the “women” page, you can add a link to the women’s category archive using a regular WordPress link block. You can manually create the link with the URL mentioned above for women’s products.
    • Similarly, on the “men” page, add a link to the men’s category archive page. This way, when visitors click on these links, they will be taken to the respective category archive pages, which will display products from the chosen category.

    By using this approach, you will leverage WooCommerce’s built-in category archive pages to automatically display products based on their assigned categories. You won’t need to insert the “All Products” block manually; the products will be displayed automatically based on the category URLs.

    Thread Starter learner79

    (@learner79)

    Hi Owadud,

    Thanks for your response. When I placed the link https://shop.mydomain.com/product-category/women/ on the women’s page it only showed as a link that is not even clickable. It said “Sorry, this content could not be embedded.”

    What I’m trying to achieve is show the women’s products on the women’s page in three organized columns with pictures, prices, etc. all organized neatly by category.

    • This reply was modified 1 year, 3 months ago by learner79.
    Thread Starter learner79

    (@learner79)

    Hi,

    I was able to figure it out: In the WP block editor I selected ‘Products by Category from the WooCommerce selection, I then selected my category from the drop down list which comes up after selecting ‘Products by Category’ and now it displays the products by their category. I wish this forum will allow me to show screenshots. Anyway ?? I hope I’m on the right track

    • This reply was modified 1 year, 3 months ago by learner79.
    Thread Starter learner79

    (@learner79)

    Hi Owadud,

    How can I add pagination on the women’s or the men’s page after the page displays 9 items? Currently, when I add more than 9 items, the oldest item disappears from the page and is replaced by the newest item. Grateful for your guidance.

    Hi,

    1. Adjust WooCommerce Shop Page Settings: WooCommerce has built-in settings to control how many products are displayed per page. You can adjust these settings to control the number of products shown on your shop and category pages.
      • Go to your WordPress admin dashboard.
      • Navigate to WooCommerce → Settings.
      • Click on the “Products” tab.
      • Under the “Display” section, you’ll find options like “Shop page display” and “Default category display.” Choose the “Show products” option and set the “Products per page” value to the number you prefer (e.g., 9).
    2. Check Theme and Template Overrides: If your theme has custom template overrides for WooCommerce, it might be affecting the pagination behavior. Make sure your theme is compatible with the latest version of WooCommerce and doesn’t have any modifications that interfere with pagination.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Showing products in categories’ is closed to new replies.