Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Vanilla is proud to present version 2.2.
Please upgrade to 2.1.x here. The 2.0 branch is no longer being updated.

[Solved] Showing number of comments on WP Widget?

edited October 2011 in Vanilla 2.0 Help
Is there a way to show number of comments on the WP Forum widget?


  • I achieved this by adding
    echo '<span>'.(($Discussion->CountComments) - 1).'</span>';

    after this line
    echo '<li><a href="'.vf_combine_paths(array($link_url, 'discussion/'.$Discussion->DiscussionID.'/'.vf_format_url($Discussion->Name)), '/').'">'.$Discussion->Name.'</a></li>';
    echo '<span>'.(($Discussion->CountComments) - 1).'</span>';

    in widgets.php
Sign In or Register to comment.