The default setting in the bbpress forum topics is that the most active topic automatically gets on top (sorted by freshness). However, I wish to change this setting in descending order of topics created or by topic id. I have tried to locate the template file to make these changes but could not get. Any help is appreciated.
2 Answers
Add this to a plugin or your active themes functions.php
function my_custom_display_topic_index_query () {
$args['orderby'] = 'date';
$args['order'] = 'DESC';
return $args;
}
add_filter('bbp_before_has_topics_parse_args', 'my_custom_display_topic_index_query' );