WordPress.org

Forums

2 Comment Questions (5 posts)

  1. faustina
    Member
    Posted 8 years ago #

    1. How do I get the comment link jump down working? Right now when you click on comments the permalink page loads at the top of the page, not where the comment form is.

    http://www.gollygolly.com

    2. How do I get the text to say "Comments are Closed" when I turn comments off for a specific post? I have

    <?php comments_popup_link('0&nbsp;<span>Comments</span>', '1&nbsp;<span>Comment</span>', '%&nbsp;<span>Comments</span>', 'commentslink', '<span class="commentslink">Closed</span>'); ?>

    for the comment link, but they never say that they are closed - see this page - http://www.gollygolly.com/category/photos/ - They all say "0 comments" when comments are closed for these items.

    Any help with these items is greatly appreciated. My site is also runing a bit slow because of a plugin, so be patient please :)

  2. faustina
    Member
    Posted 8 years ago #

    Got the Comment Jump working - #1

    as for #2, anyone know if this is a bug? My code is correct, but it ever shows "closed" for posts with comments closed.

    Any help is greatly appreciated.

  3. moshu
    Member
    Posted 8 years ago #

    Hmm. I put your code in a (local) test install of mine and it works. However, you have to disable both the comments and pings in order to have the "closed" displayed.

  4. faustina
    Member
    Posted 8 years ago #

    ah, let me try that. I hope that does it.

  5. faustina
    Member
    Posted 8 years ago #

    ok, disabling pings makes it work on index or archive pages but this code:
    <?php if (is_single) { // To hide comments entirely on Pages without comments ?>
    <li>Comments are currently closed.</li>
    <?php } ?>

    should also make it say "comments are currently closed" on the permalink page, but it does not - nothing shows up there. Is that code correct also?

Topic Closed

This topic has been closed to new replies.

About this Topic