I finally found a solution on how to fix “Missing field “item” (in “itemListElement”)”. This error prevents our website from displaying rich results like feature snippets. This might be useful guys.
The “Missing field “item” (in “itemListElement”)” error is a common error that can occur on WordPress websites. This error means your website’s schema markup is missing the “item” property. The “item” property is required for breadcrumb schema markup.
There are two ways to fix this error:
To disable Yoast SEO’s schema markup, you need to add the following code to your theme’s functions.php file:
function disable_yoast_schema_data($data){
$data = array();
return $data;
}
add_filter('wpseo_json_ld_output', 'disable_yoast_schema_data', 10, 1);
To install the Schema & Structured Data for WP & AMP plugin, you can go to the WordPress plugin repository and search for “Schema & Structured Data for WP & AMP.” Once you have found the plugin, click on the “Install Now” button and then activate the plugin.
I have written a detailed blog post that can be found here.
(if this violates babia guidelines, feel free to delete this post.)
The “Missing field “item” (in “itemListElement”)” error is a common error that can occur on WordPress websites. This error means your website’s schema markup is missing the “item” property. The “item” property is required for breadcrumb schema markup.
There are two ways to fix this error:
- Disable Yoast SEO’s schema markup.
- Install the Schema & Structured Data for WP & AMP plugin.
To disable Yoast SEO’s schema markup, you need to add the following code to your theme’s functions.php file:
function disable_yoast_schema_data($data){
$data = array();
return $data;
}
add_filter('wpseo_json_ld_output', 'disable_yoast_schema_data', 10, 1);
To install the Schema & Structured Data for WP & AMP plugin, you can go to the WordPress plugin repository and search for “Schema & Structured Data for WP & AMP.” Once you have found the plugin, click on the “Install Now” button and then activate the plugin.
I have written a detailed blog post that can be found here.
(if this violates babia guidelines, feel free to delete this post.)