質問編集履歴
3
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -54,8 +54,6 @@
|
|
54
54
|
|
55
55
|
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
56
56
|
|
57
|
-
<?php the_post_thumbnail; ?>
|
58
|
-
|
59
57
|
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php echo get_the_post_thumbnail($post->ID, 'thumbnail'); ?></a>
|
60
58
|
|
61
59
|
<?php endwhile; endif; ?>
|
2
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -21,6 +21,10 @@
|
|
21
21
|
ちなみに管理画面の設定のメディアでサムネイルのサイズは280px X 280pxです。
|
22
22
|
|
23
23
|
function.phpにもリサイズの記述をしてあります。
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+

|
24
28
|
|
25
29
|
|
26
30
|
|
1
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,9 +20,27 @@
|
|
20
20
|
|
21
21
|
ちなみに管理画面の設定のメディアでサムネイルのサイズは280px X 280pxです。
|
22
22
|
|
23
|
+
function.phpにもリサイズの記述をしてあります。
|
23
24
|
|
24
25
|
|
25
26
|
|
27
|
+
「function.php」
|
28
|
+
|
29
|
+
```ここに言語を入力
|
30
|
+
|
31
|
+
// アイキャッチ画像を利用できるようにします。
|
32
|
+
|
33
|
+
add_theme_support('thumbnail');
|
34
|
+
|
35
|
+
// サムネイルサイズ設定
|
36
|
+
|
37
|
+
set_post_thumbnail_size(280,280 ,true);
|
38
|
+
|
39
|
+
```
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
「index.php」
|
26
44
|
|
27
45
|
```ここに言語を入力
|
28
46
|
|