How to Resolve Invalid Url in Field “id” ERROR in WordPress

Recently I received an email from Google Search Console related to my WordPress website stating “Invalid Url in Field id”. After investigating and spending a few hours finally I was able to find how to resolve Invalid Url in Field “id” Error. I decided to write an article on it for the others especially non-programmers who are facing the same problem. Following is the Email I received from Google Search Console related to the Error.

Invalid URL in Field id Error Email
Invalid URL in Field id Error Google Search Console

Google Structured Data Testing Tool can also be used to check & test the errors on the website. This tool also has shown me the same error, as shown in the below screenshot.

Invalid URL in field id Error by Google Structured Tool

Solution to Resolve Invalid Url in Field “id” ERROR

When I tried to figure out the issue, I found the reason that it’s due to the Breadcrumb issue in my Cenote theme. You can follow the below steps to resolve the issue.

1. Disable breadcrumbs from Theme Appearance settings. For that please follow the following steps.

Appearance -> Themes -> Customize (Active Theme) -> Theme Options -> Breadcrumbs -> Uncheck Enable Breadcrumbs

2. Now, after step 1, the issue is resolved but breadcrumbs from the website are also disappeared. To bring them back, you can install a Breadcrumb plugin. I have installed Breadcrumb NavXt. To install this plugin follow the guidelines present here.

3. After activating the Breadcrumb NavXt plugin, minor customization is required your theme to add Breadcrumbs provided by the plugin. For that, follow the following steps.

Appearance -> Theme Editor

From the right side choose your theme, find the Theme Header (header.php) file, and open it. Add the following code in this file, where you want to show the breadcrumbs, either at bottom or in-between.

<div style="" class="breadcrumbs tg-container" typeof="BreadcrumbList">
    <?php if(function_exists('bcn_display') && !is_front_page())
    {
        bcn_display();
    }?>
</div>

In above code I have added !is_front_page() to hide Breadcrumb from home screen. If you want to show it there, you can remove this.

After completing the above steps you can check your website again in Google Structured Data Tool. If errors are fixed, Go to your Google Search Console. Choose Breadcrumbs from the left menu, click on the error and then press the Validate Button. Validation will take some time to confirm about fixing of the error.

That’s it!! this is how to resolve Invalid Url in Field “id” Error. If you still face some problems, add your comments below to get a solution to your problem.

You can also find many other useful articles in our Coding Articles & Tutorials Knowledge Base.

Please share this post:
Native Mobile Application Developer (Android + IOS) having experience in Java, Swift, Kotlin, Objective C, Unity, C#, C/C++, NODE JS & PHP.

25 thoughts on “How to Resolve Invalid Url in Field “id” ERROR in WordPress

  1. I download the cenote theme and was having this problem with breadcrumbs. Thank you so much for article, I followed these steps and now everything is fixed!

  2. I followed the steps but got this error: “Your PHP code changes were rolled back due to an error on line 78 of file wp-content/themes/magnitude/header.php. Please fix and try saving again.”

    syntax error, unexpected ‘<', expecting end of file

    I'm not a programmer so it's a bit of a headache.

  3. I appreciate, cause I found exactly what I was looking for. You’ve ended my four day long hunt! God Bless you man. Have a nice day. Bye

  4. I use wordpress and woocommerce. Recently I changed the website theme. Never thought this was the issue. Thanks for your instructions. I’m gonna go try this up. Thanks again.

  5. It’s truly a nice and useful piece of information. I’m
    glad that you just shared this useful information with us.
    Please keep us up to date like this. Thank you for sharing.

  6. Hello to all, how is all, I think every one is getting more from this web page, and your views are good in favor of
    new people.

  7. How to resolve Invalid Url in Field "id" Error in WordPress – Handy Opinion
    Greetings! Very useful advice within this article! It is the little changes that
    will make the greatest changes. Many thanks for sharing!

  8. If you are going for most excellent contents like me, simply pay
    a quick visit this site every day since it presents quality contents, thanks

  9. It’s a pity you don’t have a donate button! I’d certainly donate to this
    outstanding blog! I guess for now i’ll settle for book-marking and adding
    your RSS feed to my Google account. I look forward to brand new updates and will talk about this site with
    my Facebook group. Talk soon!

  10. Hello! This is my first visit to your blog!
    We are a group of volunteers and starting a new initiative in a
    community in the same niche. Your blog provided us useful information to work on. You have done
    a outstanding job!

  11. Hi there very cool website!! Guy .. Beautiful ..
    Amazing .. I will bookmark your website and take the feeds additionally?

    I am glad to search out so many helpful info here in the put up, we need develop extra techniques on this regard, thank you for sharing.
    . . . . .

  12. Really no matter if someone doesn’t understand after that its up to other visitors that they will assist,
    so here it takes place.

  13. Great article! This is the kind of information that
    should be shared across the net. Disgrace on Google
    for no longer positioning this submit upper! Come on over and discuss with my web site .
    Thank you =)

  14. I was suggested this web site via my cousin. I am not
    sure whether this submit is written by way of him as nobody else understand such detailed approximately my problem.
    You are wonderful! Thanks!

  15. Please let me know if you’re looking for a writer for your
    weblog. You have some really great articles and
    I think I would be a good asset. If you ever want to take some of
    the load off, I’d really like to write some content for your blog in exchange for
    a link back to mine. Please shoot me an e-mail if interested.
    Thank you!

  16. I love what you guys tend to be up too. This type of clever work and reporting!
    Keep up the superb works guys I’ve incorporated you guys to my personal blogroll.

Ask a Question

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Begin typing your search term above and press enter to search. Press ESC to cancel.

%d bloggers like this: