In the permalinks settings I have /courses/%product_cat%. Using WooCommerce I created two different Courses that are named "English", but they have different categories that end up making my urls look like this:


The Grade 12 URL is not ideal with the "-2" attached onto "physics". Is there anything I can do to remove that?

  • "physics" must be unique because it is the post_name ('slug') and does not depend on any taxonomy.
    – Max Yudin
    Jan 21, 2017 at 12:24
  • so my only option is to rename the slug? Jan 21, 2017 at 22:26
  • I am also stuck in this. Did you get any solution? May 17, 2018 at 16:29

1 Answer 1


You get this behavior as following:

  • Create a page as category name.
  • A product page, make it child of your category.
  • Use [product_page id="0"] to display a product.

You can now use the same product name in different categories.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.