WordPress.org

Ready to get started?Download WordPress

Forums

wp_list_comments' paginated URLs (2 posts)

  1. kgagne
    Member
    Posted 4 years ago #

    I run several WordPress sites, but only one uses a theme that doesn't predate more recent versions of WP, that being

    http://wordpress.org/extend/themes/this-just-in

    I noticed that, instead of the intricate loop used in my other themes to display comments, this theme's comments.php file uses a shorter (newer?) command:

    <?php wp_list_comments(); ?>

    A problem arises when trying to link to a particular comment. For example, clicking on the date on this blog post's one comment:

    http://www.challengeblog.org/2009/05/dont-count-blisters/

    Results in this URL:

    http://www.challengeblog.org/2009/05/dont-count-blisters/comment-page-1/#comment-11

    I've never seen a WordPress URL of that format before, and it doesn't work on my site. What does work, and is more standard, is to remove the /comment-page-1 part to create this URL:

    http://www.challengeblog.org/2009/05/dont-count-blisters/#comment-11

    How can I get this theme to generate the correct URL -- or how can I get the URL it *is* generating to work? I don't see anything about pagination here:

    http://codex.wordpress.org/Template_Tags/wp_list_comments

  2. kgagne
    Member
    Posted 4 years ago #

    Ah -- disabling the Discussion setting "Break comments into pages" fixed it.

    Given the above issue, I'm not sure how that feature is supposed to work.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.