Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to use bbpress pagination in a plugin?


Ben L.
Member

@nightgunner5

Assuming that $mydata_curpage is the current page number (starting from 1):

bb_paginate_links( array( 'total' => ceil( $mydata_count / $mydata_pagelimit ), 'current' => $mydata_curpage ) )

You’ll have to do the actual pagination yourself, but that’s as simple as an array_slice.

Skip to toolbar