The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Comment Count WordPress

  • # January 4, 2013 at 2:33 pm

    I am having trouble getting the number of comments to show up with the comment tag: `< ?php $my_var = get_comments_number( $post_id ); ?>`
    The code is found here:

    My theme I’m creating is here:

    It is supposed to appear in the grey circle.

    # January 4, 2013 at 2:37 pm

    Is `$post_id` an actual variable that will output a string? I thought it was just saying that to get the information, you are required to have the ID of the post. There is a way to get it but I’m not sure how. I think it’s something like `$post=>ID`.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed