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 '17 at 12:24
  • so my only option is to rename the slug? – Darren Bachan Jan 21 '17 at 22:26
  • I am also stuck in this. Did you get any solution? – Manoj Mohan May 17 '18 at 16:29

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.