• Hello πŸ–

    I am using the primary category setting for products (Woocommerce). Unfortunately currently it is useless, for a simple reason: the new permalink works, but redirects to the original URL.

    Several questions :

    * Is this normal ?
    * Is this a limitation with WP/Woo or a bad practice to do so?
    * Is there a way to prevent this ?

    Extra question:

    * Is it possible to import the primary category with a CSV product import (using the Woocommerce import tool) ? Custom meta?

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,

    can you share an example please?

    The primary category is a post meta so yes it’s easy to import it:

    _seopress_robots_primary_cat

    Value: category ID

    Thread Starter Goudie

    (@goudie35)

    Example :

    site.com/shop/defaultcat/product

    If I set a custom primary category. Permelink is updated.

    site.com/shop/customcat/product

    But it’s 301 redirected to URL with default cat (I want the exact opposite)

    Also default cat is displayed on the product page.

    I can provide URL in PM

    Good news for the post meta, I will save a lot of time! πŸ‘

    Thread Starter Goudie

    (@goudie35)

    More info:

    – the links are good from others pages (but still redirecting to default).

    – english version, same issue (redirecting) but links are wrong, showing default cat URL everywhere

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,

    – try to clear your cache if you have a caching plugin
    – try to clear your browser cache too
    – check your redirections from SEO > Redirections

    Thread Starter Goudie

    (@goudie35)

    Hello Benjamin,

    The problem is still there.

    – cleaning the cache doesn’t change anything (the problem occurs even when disabled)
    – same for cache browser even when using private mode
    – redirection feature is disabled

    πŸ˜•

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

The topic ‘Disable primary category redirection’ is closed to new replies.