WordPress.org

Ready to get started?Download WordPress

Forums

bbPress Topics for Posts
multiple pages of comments on a blog post (4 posts)

  1. oddcopter
    Member
    Posted 1 year ago #

    If you have multiple pages of comments on a blog post clicking the next page doesn't work. It will only show the first page of comments.

    http://wordpress.org/extend/plugins/bbpress-post-topics/

  2. David Dean
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. David Dean
    Member
    Plugin Author

    Posted 1 year ago #

    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>

  4. David Dean
    Member
    Plugin Author

    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.