回答編集履歴

1

2017/10/13 14:41

投稿

退会済みユーザー
test CHANGED
@@ -91,3 +91,59 @@
91
91
  </div><!--/jisseki_wrap-->
92
92
 
93
93
  ```
94
+
95
+
96
+
97
+ ###追記
98
+
99
+ 追加したhave_postsにそれらの投稿を全部抜き出す条件を指定してやったらどうでしょう?
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+ ```
110
+
111
+ <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
112
+
113
+ ```
114
+
115
+
116
+
117
+ ```
118
+
119
+ <?php
120
+
121
+ $args = array(
122
+
123
+ 'post_type' => 'post',
124
+
125
+ 'posts_per_page' => -1,
126
+
127
+ 'post_status' => 'publish',
128
+
129
+
130
+
131
+ );
132
+
133
+ $query = new WP_Query( $args );
134
+
135
+
136
+
137
+ if ( $query->have_posts() ) : while ( $query->have_posts() ): $query->the_post(); ?>
138
+
139
+ ```
140
+
141
+
142
+
143
+ カテゴリーや投稿タイプ等の必要な情報を当て込んでください。
144
+
145
+
146
+
147
+ 関数リファレンス/WP Query
148
+
149
+ [https://wpdocs.osdn.jp/%E9%96%A2%E6%95%B0%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9/WP_Query](https://wpdocs.osdn.jp/%E9%96%A2%E6%95%B0%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9/WP_Query)