WordPress.org

Ready to get started?Download WordPress

Forums

Any comment hacks that ask to lrave 1st post? (5 posts)

  1. KarlB
    Member
    Posted 10 years ago #

    Hi there,
    I have seen some site where, if no comment has been left instead of saying 'comments (0)' it says 'be the 1st to leave a comment' and for 1 comment it actually says '1 comment' and for 2 it says '2 comments'.
    Can someone tell me how to do this please?
    Thanks a lot
    Karl

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    I just altered my template and did this:
    <div class="feedback">
    <?php link_pages('
    Pages: ', '
    ', 'number'); ?>
    <?php comments_popup_link('be the 1st to leave a comment' , '(1) Comments ', '(%) Comments '); ?>
    </div>
    It seems to work okay ..
    It keeps the bracket at the moment though

  3. KarlB
    Member
    Posted 10 years ago #

    Thanks for that Podz
    The trouble with me is I always think somethings gonna be harder than it actually is :)
    This is what I used based on your code:
    <pre>
    <?php comments_popup_link('Want to reply?', '1 Comment', '% Comments'); ?>
    </pre>
    Thanks again
    Karl

  4. Mark (podz)
    Support Maven
    Posted 10 years ago #

    OOoohh... I might borrow that :)
    Glad I could help.

  5. KarlB
    Member
    Posted 10 years ago #

    No probs :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.