回答編集履歴

2

よく確認してませんでした

2017/02/11 02:18

投稿

8-0_nyan5
8-0_nyan5

スコア2352

test CHANGED
@@ -7,3 +7,43 @@
7
7
 
8
8
 
9
9
  参考まで。
10
+
11
+
12
+
13
+ 以下でどうでしょう。
14
+
15
+
16
+
17
+ ```php
18
+
19
+ <?php if(is_single()): ?>
20
+
21
+ <div class="pagelink">
22
+
23
+ <?php if (get_next_post()):?>
24
+
25
+ <?php next_post_link('%link',' %title <i class="fa fa-chevron-circle-right"></i>', true); ?>
26
+
27
+ <?php else : ?>
28
+
29
+ 同じカテゴリで新しい記事はありません。
30
+
31
+ <?php endif; ?>
32
+
33
+ <?php if (get_previous_post()):?>
34
+
35
+ <?php previous_post_link('%link','<i class="fa fa-chevron-circle-left"></i> %title', true); ?>
36
+
37
+ <?php else : ?>
38
+
39
+ 同じカテゴリで古い記事はありません。
40
+
41
+ <?php endif; ?>
42
+
43
+ <?php endif; ?>
44
+
45
+ ```
46
+
47
+
48
+
49
+

1

rejpy>9

2017/02/11 02:18

投稿

8-0_nyan5
8-0_nyan5

スコア2352

test CHANGED
File without changes