So close… Indeed you use bbp_has_replies to reverse order the replies
function custom_bbp_has_replies() {
$args['order'] = 'DESC'; // 'ASC' (Ascending, Default), 'DESC' (Descending)
return $args;
}
add_filter('bbp_before_has_replies_parse_args', 'custom_bbp_has_replies' );
And use bbp_show_lead_topic to always show the ‘lead topic’ (More details here.
function custom_bbp_show_lead_topic( $show_lead ) {
$show_lead[] = 'true';
return $show_lead;
}
add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
Perfect — this worked like a charm. Thanks so much for your help!
I am currently trying do the same thing, set newest to oldest with the original topic post remaining on the top.
I am a novice with code and CSS, and was curious where the code you provided for grex22 went. I am familiar with the .php location of bbpress, but can not find the information you posted.
Thank you
function custom_bbp_has_replies() {
$args[‘order’] = ‘DESC’; // ‘ASC’ (Ascending, Default), ‘DESC’ (Descending)
return $args;
}
add_filter(‘bbp_before_has_replies_parse_args’, ‘custom_bbp_has_replies’ );
Thank you for the great solution, @netweb!
However, as I changed the query, the post IDs got messed up (this appears when I click on the ID starting with “#” in the top right corner of the post). Also, after submitting a new post, bbPress jumps to the last page in that topic, despite the fact that the order has already been changed and the latest reply is on the first page (this could be a result of the messed ID’s, I think).