Jump to content

Search Console errors


Mehmet Madanoglu

Recommended Posts

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...