How To Add Polls To WordPress- WP-Polls
For WordPress website owners, if you want to add polling functionality easily into you website then this post is for you. Many of you would already know that WordPress is directly integrated with Polldaddy (a famous poll creation service). But I am not writing about that as you will already get info about this here. If you do not want to use polldaddy service to create polls in your WordPress website then I have an alternative for you. Yes you can use Wp-polls plugin to create and manage polls in your WordPress website.
To download this plugin Click Here.
Once you download this plugin, install and activate it in your WordPress website. After activating this plugin you will get “Polls” icon in right sidebar or your dashboard:
To create a new poll you can simple go to “Add Poll” option and you will get a screen where you have to enter your poll question and its possible answers. You can add as many answers you want to add. Also you can set if your question has multiple answers or just a single answer. Then you can set starting and ending date for your created poll.
WP-polls offer you various “Poll Options”. You can set Poll bar style, Poll bar background and border colors etc, sorting of poll answers, polls ajax styling, sorting of poll answers, who can vote?, poll logging method etc.
Further you can go to “Poll Template” option to display various things along with your polling system. You will have to use various template variables in order to import that function to your Polling form. You will get detailed information by going to “Poll template” option:
This was all up to setting up your poll and customizing it as per your need.
How to display Poll in your WordPress website:
Go to “Widgets” section which you will find under “Appearance” option in your WordPress dashboard. You can drag “Polls” widget to sidebar in order to activate it. As you drag this widget to activate it, it will ask you which polls you want to display out of all polls that you have created.
If you want to display your poll somewhere else like in website’s footer or header then you can use this PHP code:
<?php if (function_exists(‘vote_poll’) && !in_pollarchive()): ?>
<li>
<h2>Polls Heading</h2>
<ul>
<li><?php get_poll(xx);?></li>
</ul>
<?php display_polls_archive_link(); ?>
</li>
<?php endif; ?>
Where “xx” is your poll id of the poll that you have created. If you do not know PHP well, then I would suggest you to not mess with your themes code.
Conclusion:
Creating polls is a good way to enhance user interactivity with your website. Always create and display polls of your user’s interest. When a poll ends always show them the results to know what others think. It’s interesting thing to have polling system in your website, so integrate polling system in your website using this easy tutorial and increase your interactivity with users via polls.







thnx sir very much for ur suggestion
how can a user can add question in wp-polls from their profiles…
i want user can also add question from front
Hi Sanjeev,
How can you add a poll into the body of a WordPress post or page?
Thanks.
Nice tutorial
One plugin I’m using now is the WordPress Social Polling Plugin.
It’s just been released and helps make your website go viral through the use of Social Polling
http://codecanyon.net/item/wordpress-social-polling-plugin/3750798
Check it out
Thanks for the great info. Can you provide code to display poll at the end of a blog post?
I would like to insert the code in specific blog posts, also, I would like to be able to insert the code into the template so that the poll appears on every blog post.
Thanks!