> Wordpress > Sideberテンプレート > wordpress サイドバーにカスタム投稿の分類、月別アーカイブ、最新記事一覧を表示する方法 1.カスタム分類のターム名一覧の表示方法 <ul> <?php wp_list_categories(array('title_li' => '', 'taxonomy' => 'topicslist', 'show_count' => 0, 'depth' => 1)); ?> </ul> taxonomy’ => ‘topicslist’, // カスタム分類名 2.カスタム分類の最新記事を表示件数を指定して表示 <ul> <?php $args = array( 'post_type' => 'topics', 'taxonomy' => 'topicslist', 'posts_per_page' => 10, 'numberp
![wordpress サイドバーにカスタム投稿の分類、月別アーカイブ、最新記事一覧を表示する方法 | WEBデザイナーのしおり](https://cdn-ak-scissors.b.st-hatena.com/image/square/0dc4d7668a048e1a795ec5155d64c94ed9638378/height=288;version=1;width=512/http%3A%2F%2Fmsweb.moo.jp%2Fwordpress%2Fwp-content%2Fplugins%2Fwordbooker%2Fincludes%2Fwordbooker_blank.jpg)