PHP error - need help
Posted: Fri Feb 27, 2009 1:05 pm
Hi all
When I try to view author archive page in Wordpress I get this error message in sidebar:
Thanks in advance
When I try to view author archive page in Wordpress I get this error message in sidebar:
This is the code on line 24:Catchable fatal error: Object of class WP_Error could not be converted to string in /home/answersg/public_html/wp-content/themes/answers/sidebar_category.php on line 24
Please help if you know what's wrong.<?php
$breadcrumbs = explode('|',get_category_parents($cat,true,'|'));
array_pop($breadcrumbs);
array_pop($breadcrumbs);
if ($breadcrumbs) foreach ($breadcrumbs as $crumb);
?>
Thanks in advance