Choose a Primary Category feature doesn’t work

#36441
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math today.

    This feature is already available in the plugin and you can find it on the sidebar as shown below:
    Primary taxonomy

    Looking forward to helping you. Thank you.

    ​​​​​​

    Thank you for your reply.

    It turned out that the functionality was not working due to the template used.

    But I have another question – I use this functionality in WooCommerce. I have a product that is assigned to 2 different categories (sweaters and sweatshirts), one of which is marked as the primary one.

    The product URL structure contains the name of the category. In my case it is%shop%/%product_cat%/%product_name%.

    Such structure, however, even when choosing the primary category, causes 2 different URL addresses under which the product is available.

    example.com/shop/sweaters/product_name
    example.com/shop/sweatshirts/product_name

    I would like only the URL with the main category to be available.

    Can this be achieved thanks to this functionality, or will it already be a custom solution?

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    This is expected behavior since the generation of product permalinks is controlled by WordPress. You may need a custom solution to achieve this.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Choose a Primary Category feature doesn’t work’ is closed to new replies.