• When visitors to my website start commenting on one of my topics I need a next page created automatically when there’re too many comments to realistically load on one page. I’ve tested this and it’s a mess the comments just keep going down, this will be very inconvenient for anyone who wants to debate a topic to have to scroll too far down, and if there’re pictures in the replies it could cause loading issues.

    I’d also love to know if there’s a way to make long comments collapsible, all of this will be intended to make the experience better for the users. Any ideas?

    For informational purposes, this isn’t only in reference to the homepage, I’ll have that showing a preview or perhaps one post. The page with the blog is what I want to make more convenient.

    If there’s not a built in WP option for this I’d much prefer a plugin due to my limited knowledge of codeing, but I do have a child theme and some basic knowledge if it comes to that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • what theme are you using?

    generally, there are settings in ‘dashboard – setings – discussion’ like ‘ Break comments into pages with [ ] top level comments per page and the [ ] page displayed by default’

    themes using the wp_list_comments() function should be able to paginate comments … https://codex.www.ads-software.com/Function_Reference/wp_list_comments

    Thread Starter mikenet7482

    (@mikenet7482)

    Yep, I just found the settings under the discussion options list. Seems okay but pretty basic, there are additional features I’d love, such as a page number indicator and ability to jump between certain pages.

    As an example, above or below the comments could read…

    << 4, 5, 6, 7, 8, 9, 10, >> Clicking on the arrows would bring the reader to the first or last page, or if they wanted to do something like jump between page 4 and 8 they could. Seems like a common feature on websites.

    I’m using the Mantra theme by Cryout Creations because it was listed as one of the most customizable themes, I’ll look again to see if it has features for that but I’m fearing it will take coding, or if I’m lucky a plugin.

    The link you gave looks promising, I have no idea what file id put that in though. My child theme has a functions.php that would be my first bet but I’m not sure.

    Thread Starter mikenet7482

    (@mikenet7482)

    I found this plugin and installed it….

    https://www.ads-software.com/plugins/wp-pagenavi/installation/

    I don’t know what file I’d add the code they’re suggesting to add. This plugin is exactly what I’m looking for but it’s not clear on what file to work with. I assume I’d need to add a file, or code to my child theme to override any conflicting code in the regular theme. I really am at a loss for what exactly to do though.

    Thread Starter mikenet7482

    (@mikenet7482)

    Sorry for the multiple post, I seem to be making progress, but always hit a brick wall with something. I found the appropriate file for the above plugin (I think)…

    theme-loop.php

    I’m a little apprehensive about editing next_posts_link() and previous_posts_link(), though

    It has this within the php…

    ____________

    if ( $wp_query->max_num_pages > 1 ) : ?>

    <nav id=”<?php echo $nav_id; ?>” class=”navigation”>

    <div class=”nav-previous”><?php next_posts_link( __( ‘<span class=”meta-nav”>?</span> Older posts’, ‘mantra’ ) ); ?></div>

    <div class=”nav-next”><?php previous_posts_link( __( ‘Newer posts <span class=”meta-nav”>?</span>’, ‘mantra’ ) ); ?></div>

    </nav><!– #nav-above –>

    <?php endif;

    __________

    If that’s what I need to edit that’s a relief but I still don’t know if I need to leave this alone and create a child theme file that overrides it. I’d have no idea what file to create inside my child theme and what else it needs inside the file if so. The instructions for this plugin are not very descriptive.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘A (next page) feature when comments get too long?’ is closed to new replies.