Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to restrict number of Latest Discussions on front page


_ck_
Participant

@_ck_

My educated guess would be because fel64’s plugin is grabbing the link within the title, so the plugin that alters the page count is not getting unhooked yet.

Try adding on a new line after global $topic; in fel64’s plugin:

remove_action( 'bb_get_option_page_topics', 'bb_custom_topic_limit', 200);

It’s occurred to me there might be a bug in my plugin where I don’t have that matching ,200 on the end of the same remove_action line. If I remember correctly, actions have to be unhooked with matching priority numbers to how they were added. So maybe try adding the ,200 also.

Remember that bbPress’s “topics per page” setting must be set to the actual number of posts you want listed on a topic page.

Skip to toolbar