Serious problem with primary category that created duplicate URLs in the site

Posted in: Newspaper
Post count: 52

Hello Team
It is for long time that we have found our news site is generating duplicated url for any posts we publish.
In the Theme while we are publishing a new post there are two features that we can select a category as primary.
As you have described in this link: https://forum.tagdiv.com/primary-category/ One is setting the selected primary category in widgets around the site and it is useful. But about the second feature we can select the primary category https://prnt.sc/o56ocf is very important for us. Our news website is included in Google News and we have set the Exclusive (one of our categories) category in our News-sitemap for indexing in Google News as our exclusive news and…. So for all of our exclusive news articles we are selecting Exclusive category as the primary category and it is selecting in the URL… EXample: https://…./exclusive/headline This is working. Right now we have published more than 16000 posts in the site and more than 12000 are exclusive news…
We have found for any published posts there are generating to urls, one is from WordPress Core and its setting as we set for permalinks ( https://…./category/title exactly example: https:// …./news/politics/foreign-policy/Title… (Model 1)) and the other one is https://…./exclusive/title (Model 2) which is generating from our selected primary category….
In the site always we saw the second one urls, I mean …/exclisuve/title but recently we have found some of articles are with 1 model and some are with model 2…sometimes both. We are sure whether we see or not in the site both model of urls have generated in the site and we faced with a big problem with more than 16000 posts at least.
* We are using Yoast premium also.
I need your urgent support to solve this bad issue.
Best regards,

Post count: 52

Hello @calin ad the other Support Team, really we need urgent support in the case.
Best regards,

Post count: 52

We have contacted with Yoast support team, as they adviced we deactivated their plugin to see if the issue is from their side, but it was not from the Yoast and the only reason we think is by the Theme…Please help us as soon as possible.
Best regards,

Post count: 20688

Hi,

As the guide mentions, one of the setting is provided by Yoast quite while back ( https://yoast.com/yoast-seo-3-1/ ) and the other by the theme.
The theme setting will affect 3 elements: the breadcrumbs, the background, and the sidebar.
The Yoast provided setting will affect the permalinks, that is correct
https://www.screencast.com/t/G9dW0dmorD5
So these settings are doing different things. The URL of the post will not be affected by the theme primary category setting. If you change the primary category with Yoast the URL will change as well (at least it does for me)
https://www.screencast.com/t/Sc6csr5TJ
https://www.screencast.com/t/hWVlENNoJjn
Previously it seems that it had to be changed manually
https://wordpress.org/support/topic/change-post-permalink-when-selecting-new-primary-category/

But the bottom line would be that the theme primary category setting won’t create additional URLs, it will only affect the elements mentioned in the guide.

Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.