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())

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.

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

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

  1. 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.

  2. 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.

  3. 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.

  4. 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!

Leave a Reply

Your email address will not be published. Required fields are marked *

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