Number of topics per page post_type
-
https://bbpress.org/forums/topic/shortcode-on-the-page-php
I added [bbp-single-forum id=$forum_id] page post_type, how to make that outputs only 5 replies.
I added this code here:function bbp_single_topic_query() { if(is_singular( 'download' )) { if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 5 ) ) ) bbp_get_template_part( 'loop', 'latest-topics' ); } return; } add_action('bbp_template_before_topics_loop','bbp_single_topic_query');
it does not work for me. I maybe doing wrong?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.