by Lester Chan
4.2 (136 reviews)
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.
Tested up to WP 6.7.4 (Current: 6.9)
v2.77.3
Current Version v2.77.3
Updated 1 year ago
Last Update on 18 Jan, 2025
Synced 16 hours ago
Last Synced on
Rank
#798
—
No change
Active Installs
50K+
—
No change
KW Avg Position
101
+0.7 better
Downloads
3.7M
+11 today
Support Resolved
0%
—
No change
Rating
84%
Review 4.2 out of 5
4.2
(136 reviews)
Next Milestone 60K
50K+
60K+
84
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro
Unlock Exact Install Count
See the precise estimated active installs for this plugin, calculated from real-time ranking data.
- Exact install estimates within tiers
- Track install growth over time
- Milestone progress predictions
Need 8,660 more installs to reach 60K+
Rank Changes
Current
#798
Change
Best
#
Downloads Growth
Downloads
Growth
Peak
Upgrade to Pro
Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.
Upgrade NowReviews & Ratings
4.2
136 reviews
Overall
84%
5
93
(68%)
4
15
(11%)
3
4
(3%)
2
4
(3%)
1
20
(15%)
Tracked Keywords
Showing 4 of 4| Keyword | Position | Change | Type | Updated |
|---|---|---|---|---|
| booth | 16 | — | Tag | 16 hours ago |
| polling | 91 | — | Tag | 16 hours ago |
| poll | 142 | — | Tag | 16 hours ago |
| polls | 155 | — | Tag | 16 hours ago |
Unlock Keyword Analytics
Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.
- Full keyword position tracking
- Historical ranking data
- Competitor keyword analysis
Track This Plugin
Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.
Start Tracking FreePlugin Details
- Version
- 2.77.3
- Last Updated
- Jan 18, 2025
- Requires WP
- 4.9.6+
- Tested Up To
- 6.7.4
- PHP Version
- N/A
- Author
- Lester Chan
Support & Rating
- Rating
- ★ ★ ★ ★ ☆ 4.2
- Reviews
- 136
- Support Threads
- 0
- Resolved
- 0%
Keywords
Upgrade to Pro
Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.
Upgrade NowSimilar Plugins
WP Adminify – White Label WordPress, Admin Menu Editor, Login Customizer
7K+ installs
#2,735
Master Addons For Elementor - White Label, Free Widgets, Hover Effects, Conditions, & Animations
40K+ installs
#929
MW
MW WP Form
200K+ installs
#262
Newsletters, Email Marketing, SMS and Popups by Omnisend
200K+ installs
#279
Crowdsignal Forms
100K+ installs
#306
Frequently Asked Questions
Common questions about WP-Polls
To show specific poll, use <?php get_poll(2); ?> where 2 is your poll id.
To show random poll, use <?php get_poll(-2); ?>
To embed a specific poll in your post, use [poll id="2"] where 2 is your poll id.
To embed a random poll in your post, use [poll id="-2"]
To embed a specific poll's result in your post, use [poll id="2" type="result"] where 2 is your poll id.
General Usage (With Widget)
Go to WP-Admin -> Appearance -> Widgets.
You can add the Polls Widget by clicking on the 'Add' link besides it.
After adding, you can configure the Polls Widget by clicking on the 'Edit' link besides it.
Click 'Save Changes'.
Scroll down for instructions on how to create a Polls Archive.
To show random poll, use <?php get_poll(-2); ?>
To embed a specific poll in your post, use [poll id="2"] where 2 is your poll id.
To embed a random poll in your post, use [poll id="-2"]
To embed a specific poll's result in your post, use [poll id="2" type="result"] where 2 is your poll id.
General Usage (With Widget)
Go to WP-Admin -> Appearance -> Widgets.
You can add the Polls Widget by clicking on the 'Add' link besides it.
After adding, you can configure the Polls Widget by clicking on the 'Edit' link besides it.
Click 'Save Changes'.
Scroll down for instructions on how to create a Polls Archive.
Go to WP-Admin -> Pages -> Add New.
Type any title you like in the post's title area.
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.
Click 'Edit' and type in pollsarchive in the text field and click 'Save'.
Type [page_polls] in the post's content area.
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.
Type any title you like in the post's title area.
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.
Click 'Edit' and type in pollsarchive in the text field and click 'Save'.
Type [page_polls] in the post's content area.
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.
It is because of rounding issues. To make it always round up to 100%, the last poll's answer will get the remainding percentage added to it. To enable this feature, add this to your theme's functions.php: add_filter( 'wp_polls_round_percentage', '__return_true' );
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.
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.
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.)
Find: /* background-color: #ffffff; */
Replace: background-color: #ffffff; (where #ffffff should be your background color for the poll.)
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 }
To Display Total Polls
<?php if ( function_exists( 'get_pollquestions' ) ): ?>
<?php get_pollquestions(); ?>
<?php endif; ?>
To Display Total Poll Answers
<?php if ( function_exists( 'get_pollanswers' ) ): ?>
<?php get_pollanswers(); ?>
<?php endif; ?>
To Display Total Poll Votes
<?php if ( function_exists( 'get_pollvotes' ) ): ?>
<?php get_pollvotes(); ?>
<?php endif; ?>
To Display Poll Votes by ID
<?php if ( function_exists( 'get_pollvotes_by_id' ) ): ?>
<?php get_pollvotes_by_id($poll_id); ?>
<?php endif; ?>
To Display Total Poll Voters
<?php if ( function_exists( 'get_pollvoters' ) ): ?>
<?php get_pollvoters(); ?>
<?php endif; ?>
To Display Poll Time by ID and date format
<?php if ( function_exists( 'get_polltime' ) ): ?>
<?php get_polltime( $poll_id, $date_format ); ?>
<?php endif; ?>
Translating the template
The plugin templates can be translated via template variables.
There are these filters for the custom template variables
wp_polls_template_votebody_variables
wp_polls_template_votefooter
wp_polls_template_resultheader_variables
wp_polls_template_resultbody_variables
wp_polls_template_resultfooter_variables
Add filter to your theme and register custom variable where you will add your translation.
Good practice is to name them for example with prefix STR_ in the example STR_TOTAL_VOTERS.
/**
* Localize wp_polls_template_resultfooter_variables.
*
* @param array $variables An array of template variables.
* @return array $variables Modified template variables.
*/
function wp_polls_template_resultfooter_variables( $variables ) {
// Add strings.
$variables['%STR_TOTAL_VOTERS%'] = __( 'Total voters', 'theme-textdomain' );
return $variables;
}
// Trigger the filter
add_filter( 'wp_polls_template_resultfooter_variables', 'wp_polls_template_resultfooter_variables' , 10, 1 );
In the admin side just call the custom variable like so and the variable has been translated in the front-end.
%STR_TOTAL_VOTERS%'
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 }
To Display Total Polls
<?php if ( function_exists( 'get_pollquestions' ) ): ?>
<?php get_pollquestions(); ?>
<?php endif; ?>
To Display Total Poll Answers
<?php if ( function_exists( 'get_pollanswers' ) ): ?>
<?php get_pollanswers(); ?>
<?php endif; ?>
To Display Total Poll Votes
<?php if ( function_exists( 'get_pollvotes' ) ): ?>
<?php get_pollvotes(); ?>
<?php endif; ?>
To Display Poll Votes by ID
<?php if ( function_exists( 'get_pollvotes_by_id' ) ): ?>
<?php get_pollvotes_by_id($poll_id); ?>
<?php endif; ?>
To Display Total Poll Voters
<?php if ( function_exists( 'get_pollvoters' ) ): ?>
<?php get_pollvoters(); ?>
<?php endif; ?>
To Display Poll Time by ID and date format
<?php if ( function_exists( 'get_polltime' ) ): ?>
<?php get_polltime( $poll_id, $date_format ); ?>
<?php endif; ?>
Translating the template
The plugin templates can be translated via template variables.
There are these filters for the custom template variables
wp_polls_template_votebody_variables
wp_polls_template_votefooter
wp_polls_template_resultheader_variables
wp_polls_template_resultbody_variables
wp_polls_template_resultfooter_variables
Add filter to your theme and register custom variable where you will add your translation.
Good practice is to name them for example with prefix STR_ in the example STR_TOTAL_VOTERS.
/**
* Localize wp_polls_template_resultfooter_variables.
*
* @param array $variables An array of template variables.
* @return array $variables Modified template variables.
*/
function wp_polls_template_resultfooter_variables( $variables ) {
// Add strings.
$variables['%STR_TOTAL_VOTERS%'] = __( 'Total voters', 'theme-textdomain' );
return $variables;
}
// Trigger the filter
add_filter( 'wp_polls_template_resultfooter_variables', 'wp_polls_template_resultfooter_variables' , 10, 1 );
In the admin side just call the custom variable like so and the variable has been translated in the front-end.
%STR_TOTAL_VOTERS%'