質問編集履歴
1
添付するコードを誤っていた
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,57 +46,7 @@
|
|
46
46
|
|
47
47
|
```
|
48
48
|
|
49
|
-
<!-- ページネーション -->
|
50
|
-
|
51
|
-
<div id="paginations" class="paginations">
|
52
|
-
|
53
|
-
<?php
|
54
|
-
|
55
|
-
$args = array(
|
56
|
-
|
57
|
-
'posts_per_page' => 6,
|
58
|
-
|
59
|
-
'paged' => $paged,
|
60
|
-
|
61
|
-
'orderby' => 'post_date',
|
62
|
-
|
63
|
-
'order' => 'DESC',
|
64
|
-
|
65
|
-
'post_type' => 'business-voice',
|
66
|
-
|
67
|
-
'post_status' => 'publish'
|
68
|
-
|
69
|
-
);
|
70
|
-
|
71
|
-
$the_query = new WP_Query($args);
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
if ($the_query->max_num_pages > 1) {
|
76
|
-
|
77
|
-
echo paginate_links(array(
|
78
|
-
|
79
|
-
'base' => get_pagenum_link(1) . '%_%',
|
80
|
-
|
81
|
-
|
49
|
+
<?php the_post_navigation( array( 'prev_text' => '前の記事を読む', 'next_text' => '次の記事を読む' ) ); ?>
|
82
|
-
|
83
|
-
'current' => max(1, $paged),
|
84
|
-
|
85
|
-
'total' => $the_query->max_num_pages,
|
86
|
-
|
87
|
-
'prev_text' => '< 前へ',
|
88
|
-
|
89
|
-
'next_text' => '次へ >',
|
90
|
-
|
91
|
-
));
|
92
|
-
|
93
|
-
}
|
94
|
-
|
95
|
-
?>
|
96
|
-
|
97
|
-
</div>
|
98
|
-
|
99
|
-
<!-- ページネーション -->
|
100
50
|
|
101
51
|
コード
|
102
52
|
|