Mehmet Madanoglu 0 Posted April 1, 2020 Share Posted April 1, 2020 Hello everyone, yesterday i received warning from search console thats about structured data and my errors like that ; how can i fix that ? Is there anyone who can help me with this? Link to comment Share on other sites More sharing options...
Mehmet Madanoglu 0 Posted April 1, 2020 Author Share Posted April 1, 2020 Hello again i found breadcrumb section in output folder thats the code, but code doesnt start foreach line again im asking who can help me with this ? /* Add breadcrumbs */ if( \count( $this->breadcrumb ) ) { $jsonLd['breadcrumbs'] = array( '@context' => "http://schema.org", '@type' => "BreadcrumbList", 'itemListElement' => array(), ); $position = 1; foreach( $this->breadcrumb as $breadcrumb ) { if( $breadcrumb[0] ) { $jsonLd['breadcrumbs']['itemListElement'][] = array( '@type' => "ListItem", 'position' => $position, 'item' => array( '@id' => (string) $breadcrumb[0], 'name' => $breadcrumb[1], ) ); $position++; } } } im using ips 4.4.4 Link to comment Share on other sites More sharing options...
Recommended Posts