カテゴリ ビュー (商品がリストされているループ内) で商品のタグを取得して表示するにはどうすればよいですか? コードを使用して (別の質問から)、\app\design\frontend\...\template\catalog\product\list.phtml に入れました。
<?php $_tags = new Mage_Tag_Block_Product_List(); ?>
そしてforeach(製品リストの場所)にはタグが表示されます:
<?php if($_tags) : ?>
<?php foreach($_tags->getTags() as $tag):?>
<span class="tag"><?=$tag->getName()?></span>
<?php endforeach; ?>
<?php endif; ?>
$_tags をインスタンス化するとエラーが発生するため、機能しません。
45 行目の \app\code\core\Mage\Tag\Block\Product\List.php の非オブジェクトでメンバー関数 getItems() を呼び出します。