The MU forums have moved to WordPress.org

Get Comments (1 post)

  1. carnold
    Member
    Posted 16 years ago #

    Using 2.6.1 and trying to get comments number to show. If there aren't any, show a zero. Here is the code i am using:
    <div class="comments" onclick="window.location='<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>'"><div class="number"><a href="" title="Comment on Post: <whatever the post title is>"></a></div></div>
    I have tried just % comment but this puts just that in the place i want the comment count. How do i get the number of comments and show them? You can see what i am trying to do here:
    http://forgiven.mytimewithgod.net and look under the post.

About this Topic

  • Started 16 years ago by carnold