The poll plugin has gotten some love lately and have evolved quite a bit. So here are the details.
Single (default)
The simplest poll you can make is a single choice poll.
You just need a list surrounded by the [poll] BBCode tag [/poll]
.
[poll]
- Option A
- Option B
- Option C
[/poll]
This will create a poll like this:
- Option A
- Option B
- Option C
0 voters
Multiple
If you want to allow multiple choices, you only need to add “type=multiple” to the tag, like so:
[poll type=multiple]
- Option A
- Option B
- Option C
[/poll]
This will produce the following poll (note the help text)
- Option A
- Option B
- Option C
0 voters
Multiple (with options)
If you want to limit the number of selected options in a multiple choices poll, you can do so using both “min” and “max” arguments:
[poll type=multiple color=red min=1 max=2]
- Option A
- Option B
- Option C
[/poll]
This will produce a multiple choice polls allowing up to 2 different options:
- Option A
- Option B
- Option C
0 voters
Multiple polls in the same post
Have you noticed that this post contains several polls? Wonder how’s that possible? It’s because I’m using a different “name” for each of the polls
[poll name=single]
- Option A
- Option B
- Option C
[/poll]
There are a lot more options like changing the background color or text color by adding “background=blue” or “color=red” respectively.