• Resolved majenn

    (@majenn)


    I used to use yoast SEO plugin, alongside the plugin ‘WP Category Permalink’.

    In this setup, I would choose a category permalink, and that is the only URL sitewide that a post would appear under.

    For example. If I wanted a post to appear in two different category archives, but with only one URL, I would create the post and put it in two category’s, then use ‘WP Category Permalink’ to make sure it only ever had one URL sitewide.

    “/cat1/article/” would be the url I want, “/cat2/article/” would redirect to “/cat1/article/”. Also, if I wanted to insert a link to the post using the ‘insert link’ in the post editor, types into search, I would only ever see the article with link “/cat1/article/”, the one I chose.

    With the new ‘primary category’ functionality added to the yoast plugin, it has effectively ruined this.

    My articles can now show up under /cat1/article/ and /cat2/article/, with a canonical from cat2 to cat1. And which link appears in the search when adding a link to a post is anyones guess.

    This means the /cat2/article/ can be found, VAs who internally link may link to it, social shares can be performed to the cat2 link, it’s a whole mess.

    I understand the ‘primary category’ setting was added to solve a breadcrumb issue. I don’t use breadcrumbs, but the addition of this has messed up long-standing functionality that was very clean and ensured only one URL was ever found site wide for any one article, and all internal links and social shares were only ever to this one link.

    Now, after the yoast primary category functionality, links can go to multiple URLs, and social shares of multiple URLs, for one single category.

    Is there a way to completely remove this functionality please?

    I have tried adding filter:

    add_filter( ‘wpseo_primary_term_taxonomies’, ‘__return_empty_array’ );

    That just removes the UI, the fucntionality of WP Category Permalinks is still messed with, even with this filter. I need the whole yoast primary functionality removed, as well as making sure it has no effect on anything else sitewide.

    How can this be done please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @majenn Yoast SEO saves primary category as post metadata, more info at https://github.com/Yoast/wordpress-seo/issues/6184

    I don’t know that this solution (filter get_post_metadata) can help you, but you can try. I don’t have experience with plugin WP Category Permalinks.

    Thread Starter majenn

    (@majenn)

    Yes, doesn’t help sadly.

    I have permalinks structure of:

    %category%/%postname%

    If you selected multiple categories for a post, Yoast SEO used to have no effect on this, and the URL would default to the category with the lowest ID.

    Custom Category Permalink plugin would allow you to manually select the category.

    So then, if you added the article to cat1 and cat2, but selected cat2 (with a higher ID) then the url would be:

    /cat2/article

    If you typed in the url /cat1/article, it would redirect to /cat2/article. If you used the link builder from within a post, you would only find /cat2/article.

    Now, since yoast SEO’s change, you can access and view both /cat1/article/ and /cat2/article. In the link builder, the URL with lowest ID appears.

    This means, if I choose and want /cat2/article/ as the only url that article appears on, it cannot be done. Now, why does this matter if yoast makes /cat1/article/ canonical to /cat2/article?

    Because then internal links can be pointed to /cat1/article/, social share counts can be spread around /cat1/article and /cat2/article/, lessening ‘social proof’. It’s unnecessary ‘duplicate content’, even if one is canonical to the other, it’s still a mess.

    Any word on this @yoast?

    I’ll try to reproduce this issue in next days. I recommend you to open issue on https://github.com/Yoast/wordpress-seo/issues/ We can referenced it to other issues and there is advanced support.

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

The topic ‘Doesn’t Work With WP Category Permalink plugin anymore’ is closed to new replies.