質問編集履歴
1
試したことを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,3 +1,17 @@
|
|
1
1
|
ワードプレスのtwentyfifteenで、カテゴリーをクリックすると、そのカテゴリ内の記事すべてが全文表示されるのを、タイトルのみの表示、またはタイトルと抜粋の表示にへんこうしたいです。最新記事も同様にタイトルかタイトル+抜粋にしたいです。
|
2
2
|
|
3
|
+
|
4
|
+
|
3
|
-
|
5
|
+
試したこと
|
6
|
+
|
7
|
+
参考サイトhttp://hublog.biz/bwpb/how-to-switch-from-the_content-to-the_excerpt/#2015にあるようにarchive.php内の
|
8
|
+
|
9
|
+
get_template_part( 'content', get_post_format() );を
|
10
|
+
|
11
|
+
get_template_part( 'content-search', get_post_format() );と変更。
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
参考サイトhttp://presentnote.com/list-of-excerpt/
|
16
|
+
|
17
|
+
【 content.php 】の【 <?php the_content 〜 】と書かれている部分を【 <?php the_excerpt 〜 】に変更するというのは、<?php the_content 〜の部分が見つかりません。
|