I found this code and can now show five popular entries on my frontpage 🙂
// Top five of bbpress on startpage
function rk_top_five_view() {
bbp_register_view( ‘top-five’, __( ‘5 Most Popular Topics’ ), array(
‘meta_key’ => ‘_bbp_reply_count’,
‘posts_per_page’ => ‘5’ ,
‘ max_num_pages’ => ‘1’,
‘orderby’ => ‘meta_value_num’ ),
false );
}
add_action( ‘bbp_register_views’, ‘rk_top_five_view’ );
Thanks
Matthias
Now I’m trying to hide the pagination of the output
My startpage has the page ID 35
I’m trying to use this css to hide the pagination only on the startpage
.page-id-35, a.page-numbers, .page-numbers.current, .page-numbers.dots, .bbp-pagination-count {display:none!important;}
The css works fine, but the addition .page-id-35 does not work
Does anyone see an error?
Thanks
Matthias