Comment Count

The Comment Count (or User-Generated Content counter) allows you to display the comment count for any conversation widget anywhere on your site. This creates another point of engagement to entice your audience to click into articles with higher contribution counts, effectively increasing the number of page views organically on already-trending articles.

<div class="viafoura">
    <vf-conversations-count></vf-conversations-count>
</div>

📘

IMPORTANT

The code above will inherit the value of Container ID from the metatag vf:container_id, therefore returning the comment count for the page the code is implemented in.

If you want to display comment counts in a page that lists several articles (like your Home Page or a Section Home), you must include the vf-container-id parameter in the comment count widget to identify from which post/page to pull the number of comments. See below code sample.

To learn more about Container ID's and how widgets are linked to individual articles, review the documentation page "Integration with your content".

<div class="viafoura">
    <vf-conversations-count vf-container-id="..."></vf-conversations-count>
</div>

Rendered Example

Installation Parameters: Comment Count

Name

Type

Description

Default

Notes

vf-container-id

string

Defines the unique ID of the current commenting tool. Refer to our documentation on Container IDs and content syndication for more detail.

e.g. /path/to/article.html


Did this page help you?