Tuesday, 25 June 2013

How To Add Polls To WordPress

Important: All scripts hosted on widcraft.googlecode.com don't work anymore because Google has blocked that SVN repository.


Polls are a great way to find out what your readers thinks about a specific thing or topic. Because your reader's opinion really matters, or maybe we just say that, but polls are a must have feature for all topic based sites.

By using polls, you can know your reader's interest, opinion, and many things. It all depends on how you use them. It's WordPress and you can also use polls in your posts, sidebars, or on an poll archive page.

So there are lots of plugins to add free polls on your WordPress site, but which one is best for us? It's not a really hard question - you can use WP Polls, which is free and fantastic. Official description of WP Polls reads:

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

It's very great plugin to use, and you can also add a poll into your blog's posts, pages, or on sidebar widgets. It's extremely customizable via templates and css styles. It also gives you an option to set a Polls Archive page for your site to display all our current and old polls. Let's just get started with this plugin:

Installing WP Polls to WordPress:

  • Click here and download this plugin. Visit your WordPress' plugin page and install this plugin.
  • You can also install this plugin from your WP's plugin directory.
  • After installing, activate the plugin through the 'Plugins' admin menu in WordPress.

That's with this simple part. Now let's move on to second part.

How To Add A Poll:

After installing this plugin, WP Poll menu will appear in your WordPress's right menu section. You can add a new poll by simply clicking on that menu. You can also choose poll's expiring time, starting time, more. Just add your poll and click on Add Poll button.

Now visit Widget section of your WP, and add a WP Poll widget to your blog's sidebar, or wherever you want your poll to appear. You can also add your poll into a post or page by clicking on Poll icon in post/page editor.

You can also display WP Poll into your template by adding following php code into your template:

<?php if (function_exists('vote_poll') && !in_pollarchive()): ?>
    <li>
        <h2>Polls</h2>
        <ul>
            <li><?php get_poll();?></li>
        </ul>
        <?php display_polls_archive_link(); ?>
    </li>
<?php endif; ?>

You can get more details at this link.

Creating Poll Archive:

Creating a Poll Archive page for your blog is a great idea, and I really recommend this step. It's just too easy, you just need to enter a simple code into your page.

  • Create a new page and name it Polls or Poll Archive
  • Change page's permalink to: http://www.yourblog.com/pollsarchive/
  • Just put following code into your page and publish it:

[page_polls]

That's it! Don't forget to leave a comment!
Important: Check our new website TricksPanda.com for WordPress tutorials, plugins and more.
 
Powered by Blogger.