Statistics

Extension for TotalPoll

Embed poll stats almost everywhere in your websites using shortcodes.

Available shortcodes

[totalpoll-stats id="POLL_ID" text="{{totalVotes}}"][/totalpoll-stats]
[totalpoll-stats id="POLL_ID" text="{{totalVotesFormatted}}"][/totalpoll-stats]
[totalpoll-stats id="POLL_ID" text="{{totalVotesWithLabel}}"][/totalpoll-stats]

[totalpoll-stats id="POLL_ID" text="{{questions.0.content}}"][/totalpoll-stats]
[totalpoll-stats id="POLL_ID" text="{{questions.0.votes}}"][/totalpoll-stats]
[totalpoll-stats id="POLL_ID" text="{{questions.0.choices.0.votes}}"][/totalpoll-stats]
[totalpoll-stats id="POLL_ID" text="{{questions.0.choices.0.votesFormatted}}"][/totalpoll-stats]
[totalpoll-stats id="POLL_ID" text="{{questions.0.choices.0.votesPercentage}}"][/totalpoll-stats]
[totalpoll-stats id="POLL_ID" text="{{questions.0.choices.0.label}}"][/totalpoll-stats]

[totalpoll-stats id="POLL_ID" text="{{questions.QUESTION_UID.content}}"][/totalpoll-stats]
[totalpoll-stats id="POLL_ID" text="{{questions.QUESTION_UID.votes}}"][/totalpoll-stats]
[totalpoll-stats id="POLL_ID" text="{{questions.QUESTION_UID.choices.CHOICE_UID.votes}}"][/totalpoll-stats]
[totalpoll-stats id="POLL_ID" text="{{questions.QUESTION_UID.choices.CHOICE_UID.votesFormatted}}"][/totalpoll-stats]
[totalpoll-stats id="POLL_ID" text="{{questions.QUESTION_UID.choices.CHOICE_UID.votesPercentage}}"][/totalpoll-stats]
[totalpoll-stats id="POLL_ID" text="{{questions.QUESTION_UID.choices.CHOICE_UID.label}}"][/totalpoll-stats]

Alternative syntax

[totalpoll-stats id="POLL_ID"]{{questions.0.content}}[/totalpoll-stats]
[totalpoll-stats id="POLL_ID"]{{questions.0.votes}}[/totalpoll-stats]
[totalpoll-stats id="POLL_ID"]{{questions.0.choices.0.votes}}[/totalpoll-stats]
[totalpoll-stats id="POLL_ID"]{{questions.0.choices.0.votesFormatted}}[/totalpoll-stats]
[totalpoll-stats id="POLL_ID"]{{questions.0.choices.0.votesPercentage}}[/totalpoll-stats]
[totalpoll-stats id="POLL_ID"]{{questions.0.choices.0.label}}[/totalpoll-stats]
languages

English

Requirements

TotalPoll 4.0