The plugin adds a clever and convenient system to create various Polls with different features, such as:
- Single and Multiple voting. Сustomizable.
- Visitors can add new answers. Сustomizable.
- Ability to set poll’s end date.
- Unregistered users can’t vote. Сustomizable.
- Different design of a poll.
- And so on. See changelog.
Democracy Poll works with all cache plugins like: WP Total Cache, WP Super Cache, WordFence, Quick Cache etc.
I focus on easy-admin features and fast performance. So we have:
- Quick Edit button for Admin, right above a poll
- Plugin menu in toolbar
- Inline css & js incuding
- Css & js connection only where it’s needed
- and so on. See changelog
More Info
Democracy Poll is a reborn of once-has-been-famous plugin with the same name. Even if it hasn’t been updated since far-far away 2006, it still has the great idea of adding users’ own answers. So here’s a completely new code. I have left only the idea and great name of the original DP by Andrew Sutherland.
What can it perform?
- adding new polls;
- works with cache plugins: wp total cache, wp super cache, etc…
- users may add their own answers (Democracy), the option may be disabled if necessary;
- multi-voting: users may multiple answers instead of a single one (may be disabled on demand);
- closing the poll after the date specified beforehand;
- showing a random poll when some are available;
- closing polls for still unregistered users;
- a comfortable editing of a selected poll: ‘Edit’ key for administrators;
- votes amount editing;
- a user can change his opinion when re-vote option is enabled;
- remember users by their IP, cookies, WP profiles (for authorized users). The vote history may be cleaned up;
- inserting new polls to any posts: the [demоcracy] (shortcode). A key in visual editor is available for this function;
- a widget (may be disabled);
- convenient polls editing: the plugin’s Panel is carried out to the WordPress toolbar; (may be disabled);
- .css or .js files may be disabled or embedded to HTML code;
- showing a note under the poll: a short text with any notes to the poll or anything around it;
- changing the poll design (css themes);
Multisite: support from version 5.2.4
Requires PHP 5.3 or later.
Usage
Usage (Widget)
- Go to
WP-Admin -> Appearance -> Widgets
and find Democracy Poll
Widget.
- Add this widget to one of existing sidebar.
- Set Up added widget and press Save.
- Done!
Usage (Without Widget)
- Open sidebar.php file of your theme:
wp-content/themes/<YOUR THEME NAME>/sidebar.php
-
Add such code in the place you want Poll is appeared:
-
Polls
- To show specific poll, use
<?php democracy_poll( 3 ); ?>
where 3 is your poll id.
- To embed a specific poll in your post, use
[democracy id="2"]
where 2 is your poll id.
- To embed a random poll in your post, use
[democracy]
Display Archive
For display polls archive, use the function:
<?php democracy_archives( $hide_active, $before_title, $after_title ); ?>