回答編集履歴

1

回答が重複したので、書き換えておきます

2019/08/12 02:41

投稿

takuya-a
takuya-a

スコア2

test CHANGED
@@ -1,57 +1 @@
1
- 解決しました。
2
-
3
- bbpressのフォーラムから記事を探し、コピペですがやりたいコメントのみ逆順ができましたので共有します。
4
-
5
-
6
-
7
-
8
-
9
- // Reverse forum replies order from newer to older
10
-
11
-
12
-
13
- function custom_bbp_has_replies() {
14
-
15
- $args['order'] = 'DESC'; // ‘ASC’ (Ascending, Default), 'DESC' (Descending)
16
-
17
-
18
-
19
- return $args;
20
-
21
- }
22
-
23
-
24
-
25
- add_filter('bbp_before_has_replies_parse_args', 'custom_bbp_has_replies' );
26
-
27
-
28
-
29
- function custom_bbp_show_lead_topic( $show_lead ) {
30
-
31
- $show_lead[] = 'true';
32
-
33
- return $show_lead;
34
-
35
- }
36
-
37
-
38
-
39
- add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
40
-
41
-
42
-
43
-
44
-
45
- こちらをfunction.phpに貼りました。
46
-
47
-
48
-
49
-
50
-
51
- 参考記事:
52
-
53
- https://bbpress.org/forums/topic/redirection-when-newest-replies-are-at-the-top/
54
-
55
-
56
-
57
- 回答くださった方ありとうございました!よろしく願いします
1
+ 回答が重複したので、書き換えてます