環境
- テーマは Cocoon を使っています。
記事一覧を表示する方法
- Cocoon を使っている場合は以下のショートコードのみで記事一覧を表示出来ます。
[new_list]
![](https://developer-note.com/wp-content/uploads/2022/06/wp_static_page_articles_01_cmp-1024x566.png)
![](https://developer-note.com/wp-content/uploads/2022/06/wp_static_page_articles_02_cmp-1024x493.png)
カテゴリごとの記事一覧を表示する方法
- 投稿 > カテゴリ から表示したいカテゴリの ID を調べます。
- Cocoon を使っている場合は以下のショートコードのみで記事一覧を表示出来ます。
![](https://developer-note.com/wp-content/uploads/2022/06/wp_static_page_articles_03_cmp-1024x545.png)
![](https://developer-note.com/wp-content/uploads/2022/06/wp_static_page_articles_04_cmp-1024x565.png)
[new_list cats=6]
![](https://developer-note.com/wp-content/uploads/2022/06/wp_static_page_articles_05_cmp-1024x565.png)
- 指定したカテゴリーのみの記事一覧が表示されます。
![](https://developer-note.com/wp-content/uploads/2022/06/wp_static_page_articles_06_cmp-1024x322.png)
[new_list]
[new_list cats=6]