How to Include the Parent and Child Category in the Permalink if the Post is Added to Both

There are a few answers, scattered around this forum. To summarise:

Configure your Permalinks:

  1. Head to Dashboard > Settings > Permalinks
  2. Scroll down to ‘Product Permalinks’ and select ‘Custom Base’.
  3. Enter /%category%/ into the text field and then select ‘Save’.

Assign Product Categories:

If your products are still not showing the Child Categories, within the URL, it could be because you are selecting both the Parent and Child Categories, for the Product to be assigned to. Simply select the Child Category only and you should now see the Product’s URL structure showing both the Parent and Child Category.

Leave a Comment