質問編集履歴
4
重複してるwp_reset_postdata();を消去
title
CHANGED
File without changes
|
body
CHANGED
@@ -98,7 +98,6 @@
|
|
98
98
|
</div>
|
99
99
|
</div>
|
100
100
|
<?php endforeach; ?>
|
101
|
-
<?php wp_reset_postdata(); ?>
|
102
101
|
<?php else : //記事が無い場合 ?>
|
103
102
|
<li><p>記事はまだありません。</p></li>
|
104
103
|
<?php endif; ?>
|
3
表示されるエラーを追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -155,4 +155,18 @@
|
|
155
155
|
<a href="<?php the_permalink(); ?>" class="m-item-listItem-link"></a>
|
156
156
|
</artcile>
|
157
157
|
|
158
|
+
```
|
159
|
+
|
160
|
+
#### メインループに表示されるエラー
|
161
|
+
```
|
162
|
+
Notice: Undefined offset: 2 in /var/www/html/wp-includes/class-wp-query.php on line 3071
|
163
|
+
Call Stack
|
164
|
+
# Time Memory Function Location
|
165
|
+
1 0.0031 357416 {main}( ) .../index.php:0
|
166
|
+
2 0.0118 357704 require( '/var/www/html/wp-blog-header.php' ) .../index.php:17
|
167
|
+
3 1.3411 6177224 require_once( '/var/www/html/wp-includes/template-loader.php' ) .../wp-blog-header.php:19
|
168
|
+
4 1.3524 6182520 include( '/var/www/html/wp-content/themes/silhouette/index.php' ) .../template-loader.php:74
|
169
|
+
5 1.5265 6288368 the_post( ) .../index.php:26
|
170
|
+
6 1.5265 6288368 WP_Query->the_post( ) .../query.php:805
|
171
|
+
7 1.5265 6288368 WP_Query->next_post( ) .../class-wp-query.php:3099
|
158
172
|
```
|
2
ソースコードの成形
title
CHANGED
File without changes
|
body
CHANGED
@@ -73,15 +73,6 @@
|
|
73
73
|
#### single-top_image.php
|
74
74
|
```php
|
75
75
|
<div class="m-firstView">
|
76
|
-
<div class="m-firstView-copy-outer">
|
77
|
-
<h1 class="m-firstView-copy">
|
78
|
-
<p class="m-firstView-copy-text">
|
79
|
-
Design Usable Everyday
|
80
|
-
</p>
|
81
|
-
<img src="<?php echo get_template_directory_uri(); ?>/images/copy_ja_white.svg" alt="普段、使えるデザインを" class="m-firstView-copy-img ja">
|
82
|
-
</h1>
|
83
|
-
</div>
|
84
|
-
|
85
76
|
<div class="swiper-container m-firstView-swiper-container">
|
86
77
|
<div class="swiper-wrapper m-firstView-swiper-wrapper">
|
87
78
|
|
1
タイトルの誤字を修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
|
1
|
+
Wordpressのindexページに複数のループを置きたい
|
body
CHANGED
File without changes
|