Support » Plugin: bbPress Topics for Posts » [Plugin: bbPress Topics for Posts] multiple pages of comments on a blog post

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Dean

    (@ddean)

    Hi oddcopter,

    Great catch! I’ll see what I can do about that, but it may require a change to bbPress. Will keep you posted.

    Plugin Author David Dean

    (@ddean)

    In the mean time, you can put this at the end of the comments-bbpress.php file included with the plugin. Kind of a hack but it seems to work.


    <script type="text/javascript">
    /** Rewrite reply pagination on the fly to work with blog posts */
    jQuery(function() {
    jQuery('#bbpress-forums a.page-numbers').each(function( idx, link ) {
    if( link.href.match(/\/(\d+)\/$/) ) {
    pageNo = link.href.match(/\/(\d+)\/$/)[1];
    link.href = window.location.href + (window.location.href.indexOf('?') == -1 ? '?' : '&' ) + 'paged=' + pageNo;
    }
    });
    });
    </script>

    Plugin Author David Dean

    (@ddean)

    Fixed in development version. Please give it a try and let me know how it works for you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: bbPress Topics for Posts] multiple pages of comments on a blog post’ is closed to new replies.