関連記事は表示したい。プラグインだとページごとに細かい使い分けができない。じゃあphpで書くしかないじゃないか!! ということで色々調べたのでメモします。 今回やりたかったこと 前回の記事が完全に無駄になってしまったような気がしないでもないですが、 わたしが今回やりたかったのは以下の3項目なんです。 複数タグを取得した関連記事の表示 ただしイケm特定のカテゴリに限る サムネイルの表示 一番上に関してはみんな大好きWEBクリエイターボックスさんの この記事に書いてあるphpでバッチリだったので使わせて頂きました。 参考:プラグインを使わずWordPressに9の機能をつける | Webクリエイターボックス こんな感じのphpを書いたら動いた! マナさんのphpを参考に、2つくらい記述を足しただけです。 <?php $original_post = $post; $tags = wp_get_