Thanks once again Robin, one final question, how do I have a second orderby for say freshness (_bbp_last_active_id).
I would like to show topics > 19 replied but also order by latest reply.
Been playing for hours and cannot crack this.
Thank you.
Sadly not,
add_action( 'bbp_init', 'view_twentyplus_posts_init' );
function view_twentyplus_posts_init()
{
//$args = array( '_bbp_topic_reply_count' => '>20' );
$args = array(
'_bbp_reply_count' => '19'
);
bbp_register_view( 'twentyplus_posts', __('Popular Posts', 'twentyplus'), $args, false );
}
Shows me posts with no responses 🙁
Hi Robin,
Sadly the custom view is not actually showing posts with ( ‘post_count’ => ‘<20’ );
Can you confirm ‘post_count’ is the correct value to pass over as it does not seem to work?
Thanks
Andy
Thats awesome, you are right, I also needed to make
add_action( 'bb_init', 'view_twentyplus_posts_init' );
become
add_action( 'bbp_init', 'view_twentyplus_posts_init' );
Need to play a little more as its not showing what I was expecting, but at least it’s showing something 🙂