WordPress.org

Support

Support » How-To and Troubleshooting » How do I display number of comments outside of the loop

How do I display number of comments outside of the loop

  • Hi,

    I am trying to display the number of comments outside of the loop and haven’t had much success.

    When i add the comments_popup_link it will display No Comments and then when I click into a post with comments it updates all of the post to show however=r many comments are in that post.

    $post_comments = comments_popup_link( __('No comments', 'wellthemes'), __( '1 comment', 'wellthemes'), __('% comments', 'wellthemes'));

    Site: http://mystreetlife.com/home

  • The topic ‘How do I display number of comments outside of the loop’ is closed to new replies.
Skip to toolbar