質問編集履歴
1
記事を読み込む箇所のコードを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -67,3 +67,49 @@
|
|
67
67
|
|
68
68
|
|
69
69
|
宜しくお願い致します。
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
```html
|
76
|
+
|
77
|
+
<div class="article-area">
|
78
|
+
|
79
|
+
<ul class="article-list">
|
80
|
+
|
81
|
+
<?php
|
82
|
+
|
83
|
+
$wp_query = new WP_Query();
|
84
|
+
|
85
|
+
$param = array(
|
86
|
+
|
87
|
+
'posts_per_page' => '6',
|
88
|
+
|
89
|
+
'post_type' => 'news'
|
90
|
+
|
91
|
+
);
|
92
|
+
|
93
|
+
$wp_query->query($param);
|
94
|
+
|
95
|
+
if($wp_query->have_posts()): while($wp_query->have_posts()) : $wp_query->the_post();
|
96
|
+
|
97
|
+
?>
|
98
|
+
|
99
|
+
<?php get_template_part('archive-list'); ?>
|
100
|
+
|
101
|
+
<?php
|
102
|
+
|
103
|
+
endwhile;
|
104
|
+
|
105
|
+
endif;
|
106
|
+
|
107
|
+
wp_reset_postdata();
|
108
|
+
|
109
|
+
?>
|
110
|
+
|
111
|
+
</ul>
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
```
|