• Hi,

    Background: I have products under multiple categories. And Permanent link uses “category” as baseline for each URL. Lets say my product belongs to cat1 and cat2, so permanent links is either: mysite/cat1/product or mysite/cat2/product

    Question 1) I am not being able to choose whether permalink is “mysite/cat1/product” or “mysite/cat2/product”. How can I do this?

    Question 2) I do not understand which is the criteria used by WordPress to select either one or the other.

    Question 3) I noticed that permanent link changes over time. For the same product, at first it was “mysite/cat1/product” and after some time it turned to be “mysite/cat2/product”. I think this happens when I update something related to categories (name, add another category, etc).

    —> This is really a Problem for SEO and ranking in search engines. Any help?

    Thanks!

    • This topic was modified 4 years, 11 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • It appears you’re using the WooCommerce eCommerce plugin.

    For WordPress POSTS, when you put a post under multiple categories, you have the option to select the PRIMARY category, and it is this PRIMARY category’s slug that appears in your permalink. When you change your PRIMARY category, your post’s permalink will change as well.

    Woocommerce’s product categories *PROBABLY* work similarly, but I’m not very familiar with the plugin. If you still need help with this, kindly ask in the plugin’s own support forum linked below:

    https://www.ads-software.com/support/plugin/woocommerce/

    Thread Starter mdraperds

    (@mdraperds)

    Thank you! You are correct, in fact, I have seen it in other Woocommerce sites: when asigning categories to a product, there was an option that says “Set as primary” (or similar). It worked as you mention. But something happened and it is not working in my page now.

    I will ask in Woocommece forum. Thanks for your time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Permanent link changes when multiple categories’ is closed to new replies.