我得到下面的錯誤...警告:破滅()[function.implode]:無效的參數傳遞
警告:破滅()[function.implode]:在\可溼性粉劑內容傳遞的參數無效/themes/mytheme/functions.php上線1335
在...
function my_get_tags_sitemap(){
if (!function_exists('wp_tag_cloud') || get_option('cb2_noposttags')) return;
$unlinkTags = get_option('cb2_unlinkTags');
echo '<div class="tags"><h2>Tags</h2>';
if($unlinkTags)
{
$tags = get_tags();
foreach ($tags as $tag){
$ret[]= $tag->name;
}
//ERROR OCCURS HERE
echo implode(', ', $ret);
}
else
{
wp_tag_cloud('separator=, &smallest=11&largest=11');
}
echo '</div>';
}
任何想法如何攔截錯誤。該網站只有一個標籤。
這是它。非常感謝您的幫助! +1 – 2011-03-12 04:48:26