Notifications
Clear all

Script [Solved] How to sort posts in a thread oldest first?

11 Posts
9 Users
0 Reactions
5,961 Views
Posts: 4
Topic starter
(@tarmstrong)
Active Member
Joined: 7 years ago

Hi:

I'm new to wpForo, and would like to set up my Forum so that new posts on a single thread are always added at the bottom. This way a new reader can read the whole story top to bottom. How do I do this?  Currently my new posts appear on top.... reversed to what I want!

Thanks

10 Replies
Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi tarmstrong,

I'm sorry but there is no option to change the order. We may take this under consideration in future version releases.

Posts: 1
 rhys
(@rhys)
New Member
Joined: 7 years ago

I really need this feature as well.
I'd like to be able to set a particular thread to show latest posts first.

Is there anyway for us to do it manually?

Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

I'd like to be able to set a particular thread to show latest posts first.

This is the new way to show replies/posts in reversed order. So the new replies will be on the top, right after the first post of the topic. You should put this code to the current active WordPress theme functions.php file:

add_filter('wpforo_post_list_args', function ($args){
if(!empty($args)){
$args['orderby'] = '`is_first_post` DESC, `created` DESC, `postid` DESC';
}
return $args;
});
Posts: 2
(@aleksey_kislov)
New Member
Joined: 6 years ago

That would be a great option! I use this forum for learning process and such a sequence is often needed. However, it seems to me that this option should be configured individually for each forum.

Page 1 / 2