思い立って blogroll を入れてみました。ただ wp.Vicuna ではデフォルトで blog roll は使われないのか知らん?調べてみました。2.5 以降は widget という仕組みになっているのかな?今日はとりあえず調べない。以前のバージョンの解決方法などを参考にしつつ(Vicunaテーマでブログロールを表示する際の不具合)、今回採用した簡単な方法は…
- Theme Editor で Sidebar (sidebar.php) を編集。
<dt>Links</dt> <dd> <ul><?php get_links_list(); ?></ul> </dd> - 上記コードで呼び出されている get_links_list を grep して、/wp-includes/deprecated.php にて発見(deprecated って…)。
- deprecated.php を編集
// Display the category name //echo ' <li id="linkcat-' . $cat->term_id . '" class="linkcat"><h2>' . apply_filters('link_category', $cat->name ) . "</h2>\n\t<ul>\n"; // Call get_links() with all the appropriate params get_links($cat->term_id, '<li>', "</li>", "\n", true, 'name', false); // Close the last category //echo "\n\t</ul>\n</li>\n"; echo "\n</li>\n";
とこんな感じになりました。
- Newer: 『察知力』を読んで
- Older: The company’s history,
Comments:0
Trackbacks:0
- Trackback URL for this entry
- http://blog.nydd.org/2008/07/%e3%83%96%e3%83%ad%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%ab%e3%82%92%e5%b0%8e%e5%85%a5/trackback/
- Listed below are links to weblogs that reference
- ブログロールを導入 from Vantage Point of Queens