WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WP-Polls

Adds an AJAX poll system to your WordPress blog. You can also easily add a poll into your WordPress's blog post/page.

How To Add A Polls Archive?

  1. Go to WP-Admin -> Pages -> Add New.
  2. Type any title you like in the post's title area.
  3. If you ARE using nice permalinks, after typing the title, WordPress will generate the permalink to the page. You will see an 'Edit' link just beside the permalink.
  4. Click 'Edit' and type in pollsarchive in the text field and click 'Save'.
  5. Type [page_polls] in the post's content area.
  6. Click 'Publish'.
  • If you ARE NOT using nice permalinks, you need to go to WP-Admin -> Polls -> Poll Options and under Poll Archive -> Polls Archive URL, you need to fill in the URL to the Polls Archive Page you created above.

How Does WP-Polls Load CSS?

  • WP-Polls will load polls-css.css from your theme's directory if it exists.
  • If it doesn't exists, it will just load the default polls-css.css that comes with WP-Polls.
  • This will allow you to upgrade WP-Polls without worrying about overwriting your polls styles that you have created.

Why In Internet Explorer (IE) The poll's Text Appear Jagged?

  • To solve this issue, Open poll-css.css
  • Find: /* background-color: #ffffff; */
  • Replace: background-color: #ffffff; (where #ffffff should be your background color for the poll.)

How Do I Have Individual Colors For Each Poll's Bar?

  • Courtesy Of TreedBox.com
  • Open poll-css.css
  • Add to the end of the file:
.wp-polls-ul li:nth-child(01) .pollbar{ background:#8FA0C5}  
.wp-polls-ul li:nth-child(02) .pollbar{ background:#FF8}  
.wp-polls-ul li:nth-child(03) .pollbar{ background:#ff8a3b}  
.wp-polls-ul li:nth-child(04) .pollbar{ background:#a61e2a}  
.wp-polls-ul li:nth-child(05) .pollbar{ background:#4ebbff}  
.wp-polls-ul li:nth-child(06) .pollbar{ background:#fbca54}  
.wp-polls-ul li:nth-child(07) .pollbar{ background:#aad34f}  
.wp-polls-ul li:nth-child(08) .pollbar{ background:#66cc9a}  
.wp-polls-ul li:nth-child(09) .pollbar{ background:#98CBCB}  
.wp-polls-ul li:nth-child(10) .pollbar{ background:#a67c52}  
.wp-polls-ul li .pollbar{ transition: background 0.7s ease-in-out }  
.wp-polls-ul li .pollbar:hover{ background:#F00 }

Polls Stats (Outside WP Loop)

To Display Total Polls

  • Use:
<?php if (function_exists('get_pollquestions')): ?>  
  <?php get_pollquestions(); ?>  
<?php endif; ?>

To Display Total Poll Answers

  • Use:
<?php if (function_exists('get_pollanswers')): ?>  
  <?php get_pollanswers(); ?>  
<?php endif; ?>

To Display Total Poll Votes

  • Use:
<?php if (function_exists('get_pollvotes')): ?>  
  <?php get_pollvotes(); ?>  
<?php endif; ?>

To Display Total Poll Voters

  • Use:
<?php if (function_exists('get_pollvoters')): ?>  
  <?php get_pollvoters(); ?>  
<?php endif; ?>

Requires: 3.9 or higher
Compatible up to: 3.9.2
Last Updated: 2014-5-20
Downloads: 1,589,929

Ratings

3 stars
3.7 out of 5 stars

Support

36 of 37 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
2 people say it's broken.

100,2,2
100,1,1 67,6,4
81,16,13
73,11,8
57,21,12 100,1,1
100,1,1 58,48,28 100,1,1 100,1,1
63,24,15 100,1,1
59,32,19 83,12,10
100,3,3
100,4,4
60,5,3 100,1,1
0,1,0 100,12,12
100,1,1 43,7,3 90,31,28
78,9,7
67,15,10 0,1,0
60,10,6
0,1,0 67,3,2
50,6,3 100,1,1
64,22,14 92,39,36 100,1,1
50,4,2
69,52,36 100,1,1
62,13,8 77,13,10
63,8,5
78,18,14
48,21,10
58,19,11
65,20,13
0,1,0 100,1,1 0,1,0
90,10,9 0,1,0
67,6,4
100,3,3 100,2,2
100,4,4
89,9,8
0,1,0 100,1,1
100,2,2 50,6,3
33,3,1