質問編集履歴
2
リストを実際のものに近いイメージで書き換えました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
|更新日|確認OK|
|
5
|
+
|更新日|製品|確認OK|
|
6
6
|
|
7
|
-
|:--|:--|
|
7
|
+
|:--|:--|:--|
|
8
8
|
|
9
|
-
|4/25|社長|
|
9
|
+
|4/25|製品1|社長|
|
10
10
|
|
11
|
-
|4/24|社長、部長、課長|
|
11
|
+
|4/24|製品2|社長、部長、課長|
|
12
12
|
|
13
|
-
|4/23||
|
13
|
+
|4/23|製品3||
|
14
14
|
|
15
15
|
|
16
16
|
|
1
「\$q->have_posts\(\) 」以降のコードを追記いたしました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -84,6 +84,40 @@
|
|
84
84
|
|
85
85
|
|
86
86
|
|
87
|
+
<div class="posts">
|
88
|
+
|
89
|
+
<ul>
|
90
|
+
|
91
|
+
<?php
|
92
|
+
|
93
|
+
// 1件ずつ処理(ループ)
|
94
|
+
|
95
|
+
while ( $q->have_posts() ) {
|
96
|
+
|
97
|
+
$q->the_post();
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
get_template_part( 'template-parts/post/content', get_post_format() );
|
102
|
+
|
103
|
+
?>
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<?php } ?>
|
108
|
+
|
109
|
+
</ul>
|
110
|
+
|
111
|
+
</div>
|
112
|
+
|
113
|
+
<?php
|
114
|
+
|
115
|
+
wp_reset_postdata();
|
116
|
+
|
117
|
+
?>
|
118
|
+
|
119
|
+
<?php } ?>
|
120
|
+
|
87
121
|
```
|
88
122
|
|
89
123
|
|