回答編集履歴
2
\.\.\.
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
$image_url = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');
|
8
8
|
|
9
|
-
echo '<div class="thumbnail-box" style="background-image:url('. image_url[0]. '"></div>';
|
9
|
+
echo '<div class="thumbnail-box" style="background-image:url('. $image_url[0]. '"></div>';
|
10
10
|
|
11
11
|
} else {
|
12
12
|
|
1
変数名が違ってた
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
$image_url = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');
|
8
8
|
|
9
|
-
echo '<div class="thumbnail-box" style="background-image:url('.
|
9
|
+
echo '<div class="thumbnail-box" style="background-image:url('. image_url[0]. '"></div>';
|
10
10
|
|
11
11
|
} else {
|
12
12
|
|