我选择了一种更简单的方式。
<?php $title = $item->get_base();
if($title == "http://mywebsite.com/"){
$t = "My Website";
}
if ($title == "http://mysecondwebsite.com/"){
$t = \'My Second Website\';
}
?>
//echo results
<span><?php echo $t; ?></span>
我尝试了get\\u channel\\u标记和get\\u feed\\u标记,它们总是返回NULL