wp_list_categoriesの問題

wp_list_catsおよびwp_list_categoriesがなぜか、へんなソースを吐き出す。

具体的にはul や li の中にdivが表示される。

<ul><div style=”margin-top:0em;margin-bottom:0em;”>

<div> <li class=”cat-item cat-item-7″><a href=”http://yumegallery.com/category/artist/denis-gingras/” title=”Denis Gingras に含まれる投稿をすべて表示”>Denis Gingras</a> (9) </li> </div>

</ul>

法則は分かっていないが、表示する(例child_ofなど)内容を変えると正常になったりする。

ソース見てモよく分からない。

 

>>追記

どうやらCategory_orderのプラグインが悪さをしていた。

category_order.phpの以下の部分を修正

553

// $html = “<div style=\”margin-top:0em;margin-bottom:0em;\”>\n”;
 $html = “”;

572

//   $html .= “<div> ” . $id_to_item[$category_order[$i][0]] . ” </div>\n”;
   $html .= $id_to_item[$category_order[$i][0]] . “\n”;

599(コメントアウト)

// $html .= “</div>\n”;

3 Responses

  1. okosou Says:

    同じ問題で躓いていました。
    記事のおかげで解決することができました。ありがとうございます。

  2. Takati Says:

    助かりました
    ありがとうございました

  3. yamanaka Says:

    ありがとうございます。
    数時間悩んでました。

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

© PHPress since 2008