• Resolved klifix2

    (@klifix2)


    Is there a simple way to add the total amount of comments on the whole website on the frontpage?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Simple is far too subjective ;’)

    From wp-admin/index.php:
    $numcomms = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'");
    if (0 < $numcomms) $numcomms = number_format($numcomms);

    Thread Starter klifix2

    (@klifix2)

    lol, thanx, I should have known that….

    EDIT: whoops, I tried that and came to the conclusion that this was not what I ment.

    What I mean is total amount of comments on my blog (so not per post…)…and as far (I’m not a widget ?? ) as I can see, this only calls the nr of comments on a post…

    Thread Starter klifix2

    (@klifix2)

    ooops, lol, I’m a bit sleepy I guess. Thanx Yosemite, I should have seen that it already is mentioned in the dashboard file in the admin area. I’ll just do copy/paste!

    lol

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Total comments count’ is closed to new replies.