ワードプレスのtwentyfifteenで、カテゴリーをクリックすると、そのカテゴリ内の記事すべてが全文表示されるのを、タイトルのみの表示、またはタイトルと抜粋の表示にへんこうしたいです。最新記事も同様にタイトルかタイトル+抜粋にしたいです。
試したこと
参考サイトhttp://hublog.biz/bwpb/how-to-switch-from-the_content-to-the_excerpt/#2015にあるようにarchive.php内の
get_template_part( 'content', get_post_format() );を
get_template_part( 'content-search', get_post_format() );と変更。
参考サイトhttp://presentnote.com/list-of-excerpt/
【 content.php 】の【 <?php the_content 〜 】と書かれている部分を【 <?php the_excerpt 〜 】に変更するというのは、<?php the_content 〜の部分が見つかりません。
回答1件
あなたの回答
tips
プレビュー