🦏 【メモ】WordPressカテゴリー表示
作成日: 2022/01/31
1

WordPressカテゴリー表示するのに迷ったメモ

下記で解決

<?php foreach( ( get_the_category() ) as $category ):?>
						<span>
						<?php echo $category->name;?>(<?php echo $category->count;?>)
					</span>
					<?php endforeach;?>

参考
https://01earth.jp/web-create/wordpress/get_categories-usual/