WordPress.org

Forums

How do I display number of comments outside of the loop (1 post)

  1. iamthestreets
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.