How to Sort Ascending in 1 Forum Only
-
I am trying to set the sort order alphabetical for only 1 of our forums, leaving the rest as default. I tried a function that I found in another thread below, but it resulted in all the topics just disappearing.
/*
//* Change sort order of Topics within a specified bbpress forum
function my_custom_display_topic_index_query ($args) {
$thisforumid = bbp_get_forum_id();if($thisforumid == 15283) {
$args[‘orderby’] = ‘date’;
$args[‘order’] = ‘ASC’;
}return $args;
}
add_filter(‘bbp_before_has_topics_parse_args’, ‘my_custom_display_topic_index_query ‘ );
*/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.