• Resolved davecoledave

    (@davecoledave)


    Hello, Many of the links detected in Page is not indexed: Duplicate without user-selected canonical in Google Search Console. Here is the screenshot: https://prnt.sc/NnMOnirO1xDo

    It has Sitemaps No referring sitemaps detected. What to do now?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @davecoledave

    Thanks for using the Yoast SEO plugin.

    According to Google’s documentation, Duplicate without user-selected canonical means this page is a duplicate of another page, although it doesn’t indicate a preferred canonical page. Google has chosen the other page as the canonical for this page, and so will not serve this page in Search. You can Inspect this URL to see which URL Google considers canonical for this page.

    This is not an error, but is working as intended, because Google does not serve duplicate pages. However, if you think that Google has chosen the wrong URL as canonical, you can explicitly mark the canonical for this page. Alternately, if you think that this page is not a duplicate of the Google-chosen canonical, you should ensure that the content differs substantially between the two pages.

    Thread Starter davecoledave

    (@davecoledave)

    Hello, @maybellyne

    Can you please tell me where is the option in yoast to set canonical on these kinds of pages? I have a lot of pages.

    you can read more at https://ww.wp.xz.cn/support/topic/duplicate-without-user-selected-canonical-6/

    Hi @davecoledave

    To add canonical URL in Yoast SEO, kindly edit the page or post where you would like to change the canonical URL and then head to Yoast SEO metabox > Advanced section to find the canonical URL field. Here you can add the canonical URL of your choice.

    Thread Starter davecoledave

    (@davecoledave)

    Hello, @611shabnam

    I have 7000 pages. How can I add entry in all of them? I don’t think it is possible to add one by one for 7000 pages.

    Hi @davecoledave

    You can use the filter wpseo_canonical to modify specific page’s canonical URL. You can find an example code here, however, you have to modify the code to add the page IDs of your own.

    Typically code snippets are added to your theme’s functions.php file. If you’re unfamiliar with using code snippets, we’d like to refer you to the WordPress documentation on how to use a filter.

    Backup:

    We recommend creating regular backups of your site and database for your site’s health and safety. A backup is crucial before making important changes on your website and provides you with a safety net if something were to go wrong. Learn more about the benefits of regular backups.

    Thread Starter davecoledave

    (@davecoledave)

    Hi @611shabnam

    It is also not possible to put all 7000 pages ID and also for new post we have to take care to put IDs every time.

    If you checked this url: https://ww.wp.xz.cn/support/topic/duplicate-without-user-selected-canonical-6/

    You can notice that some tags, actors, directors, etc are in duplicate canonical. If you provide function.php code to add rel=canonical on all those categories, tags then my problem can be solved. Or please add option in yoast plugin to set rel=canonical for categories and there will be option to select those categories for which I want to set rel=canonical then no manual codes will be required.

    Hi @davecoledave

    I am sorry for the situation you are facing; however, there is no feature in Yoast SEO to set the canonical for multiple URLs in bulk.

    Thank you for suggesting a new feature for one of our plugins! You’re not the first to have requested this feature! That means a similar feature request has been created internally and is under review by our product team.

    What’s next?
    Our product team will assess the feature request and assign a priority level to the report. Our developers work on the highest priority issues first. We cannot give you an estimate of when or if they’ll start working on the request.

    Thread Starter davecoledave

    (@davecoledave)

    @611shabnam

    Till then can you please provide me any function like this https://developer.yoast.com/features/seo-tags/canonical-urls/api/#change-the-canonical-url

    In which I can add rel=canonical or wpseo_canonical on all those categories, tags then my problem can be solved. Currently you gave the code for post id. I want for all those categories and tags.

    Hi @davecoledave

    To find the category ID, when you edit a category or tag, check the URL. It will be something like:

    http://******/wp-admin/term.php?taxonomy=category&tag_ID=350&post_type=post&******************category

    Here the category ID is 350. Process is similar for tags.

    Thread Starter davecoledave

    (@davecoledave)

    Don’t I need to change code? In code there is is_page( 12345 )

    do I need to put categories id in is_page ?

    Hi @davecoledave

    You can use the function is_category() that is mentioned in the WordPress developer resources.

    Your question is a bit outside the scope of our support since we are not familiar with your site structure and content. The support team is here to help you with questions about the setup and basic use of the plugin. As much as we’d love to help, providing coding support is beyond what we can do for our users.

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

The topic ‘Duplicate without user-selected canonical’ is closed to new replies.