There is nothing like that built in.
It might be possible to filter the query to use the view counts. Or do a separate page with a custom query.
The count is stored in post meta so WP query should be able to order by this.
It’s something I could look at adding, perhaps a most viewed list widget.
Appreciate your response, I actually figured it out with below code, hope this will help you to make your widget.
function rk_top_five_view() {
bbp_register_view( 'top-five', __( 'Most Viewed' ), array(
'meta_key' => '_bbp_reply_count',
'posts_per_page' => '20' ,
' max_num_pages' => '1',
'orderby' => 'meta_value_num' ),
false );
}
add_action( 'bbp_register_views', 'rk_top_five_view' );
Just added this shortcode in the page
[bbp-single-view id="top-five"]
Cheers!
-
This reply was modified 9 years, 3 months ago by
tronix-ex. Reason: added my code