Missing field “itemListElement”
-
Hello! I am seeing this error in GSC for all of my blog posts – Missing field “itemListElement”. I am using Yoast Breadcrumbs and I have read several of the other posts on this topic but they don’t seem to have the answer to my situation.
I have added a code snippet to display the “Blog” page in each blog post breadcrumb. Perhaps that is causing problems? I couldn’t figure out a way to use the Yoast settings to accomplish this goal, and I do not want to use the default WordPress settings to designate the “Posts” page.
I appreciate any help you can offer!
/* Custom breadcrumb paths using Yoast SEO to fix care plan breadcrumb paths. From this article: https://www.mrkwp.com/2023/06/edit-yoast-breadcrumb-php/ @param [array] $links default param. @return [array] $links edited links path. */ function fix_blog_bc_path( $links ) { global $post; if ( is_singular( 'post' ) || is_post_type_archive( 'post' ) ) { $breadcrumb[] = array( 'url' => get_permalink( 321 ), 'text' => 'Blog', );array_splice( $links, 1, -2, $breadcrumb );} return $links; } add_filter( 'wpseo_breadcrumb_links', 'fix_blog_bc_path' );The page I need help with: [log in to see the link]
The topic ‘Missing field “itemListElement”’ is closed to new replies.