Can anyone help me with a strange problem we have,

Hi Guys,

Can anyone help me with a strange problem we have, I am trying to introduce the directory category onto the 'directory_lisitng' page via the breadcrumbs.

In our page-header.php file we do have the code as follows:

else if ( is_singular( 'directory_listing' ))
		{

			echo '
			<p id="breadcrumbs">
				<span prefix="v: http://rdf.data-vocabulary.org/#"&gt;
					<span typeof="v:Breadcrumb">
						<a href="'.home_url().'" rel="v:url" property="v:title">Home</a>
					</span> > 

					<span typeof="v:Breadcrumb">
						<a href="/discover/" rel="v:url" property="v:title">Discover</a>
					</span> >

					<span typeof="v:Breadcrumb">
						<span property="v:title">
							<a href="/discover/merchant-directory/" rel="v:url" property="v:title">Merchant Directory</a>
						</span>
					</span> >

					<span typeof="v:Breadcrumb">
						<span property="v:title">
						'.the_category(', ').'
						</span>
					</span> > 

					<span class="breadcrumb_last" property="v:title">'.roots_title().'</span>
				</span>
			</p>

			<div class="page-header"><h1>'.roots_title().'</h1></div>';

		}

This works perfectly, however the '.the_category(', ').' function is printing the category link above the breadcrumbs and not inline.

The code is identical and therefore should fall inline but its not.

The actual output on screen looks like:

Affiliate Network
HOME > DISCOVER > MERCHANT DIRECTORY > > MORENICHE AFFILIATE NETWORK

with Affiliate Network being the result of the the_category(', ') call.

Any help would be appreciated.