Notifications
Clear all

[Solved] BuddyPress Tab Order

3 Posts
2 Users
0 Likes
1,508 Views
Posts: 2
Topic starter
(@magicmandi)
New Member
Joined: 6 years ago

Hey guys,

 

first of all thanks for the great plugin. I am already planing to buy the mycred extension 🙂
But before that, i need your help 😉

When i use the BuddyPress Forum Tab i see the links with the last topics, replies and subs. Great! When i click on one of them it shows all topics, replies and so on - thats great too - but i rly dont like the order. The newest topics and... are on the last page - is there a way to order them the other way?

I didnt find any order in the buddypress.php file 🙁

 

Thx in advance

Cheers Manuel

2 Replies
Robert
Posts: 10503
Admin
(@robert)
Support Team
Joined: 8 years ago

Try adding one more attribute in get_posts() function. Open this file:

/wpforo/wpf-includes/integration/buddypress.php

Find the first matched row:

'userid' => bp_displayed_user_id(),

Add one more row below:

'userid' => bp_displayed_user_id(),
'orderby' => 'modified',

 

For the second match, please add one more row below:

'userid' => bp_displayed_user_id(),
'orderby' => '`created` DESC',
Posts: 2
Topic starter
(@magicmandi)
New Member
Joined: 6 years ago

Hey Robert,

thank you so much for your very fast reply! It works like a charm!

Cheers Manuel