Doesn’t Work With WP Category Permalink plugin anymore
-
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?
The topic ‘Doesn’t Work With WP Category Permalink plugin anymore’ is closed to new replies.