Personalize bbPress Recent Topics
Hello All !
I need to list the last 8 topics in this widgets, and have a link to the next page of 8 topics, and so on.It would be like a pagination for every 8 topics.
I think the file is widgets.php in lines :
case 'newness' :
$topics_query = array(
'post_type' => bbp_get_topic_post_type(),
'post_parent' => $settings['parent_forum'],
'posts_per_page' => (int) $settings['max_shown'],
'post_status' => array( bbp_get_public_status_id(), bbp_get_closed_status_id() ),
'ignore_sticky_posts' => true,
'no_found_rows' => true,
'order' => 'DESC'
I know that ‘posts_per_page’ show the last topics, in my case 8, but i dont know how to access to 8 before.
Any help or idea please?
- You must be logged in to reply to this topic.