Title: Voting template
Last modified: August 21, 2016

---

# Voting template

 *  Resolved [flodi](https://wordpress.org/support/users/flodi/)
 * (@flodi)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/voting-template/)
 * I want have a poll with only 2 possibile answer the user can choose from.
 * I’d like to take the vote not by selecting a radio and then a submit button, 
   but by clicking directly on a button (or anchor) for the specific vote.
 * Let’s say I can vote A or B, I’d like to let the user click on A or B to take
   the vote.
 * How can I do that? Can I pass to poll_vote the poll id and the answer id?
 * thank you
 * [https://wordpress.org/plugins/wp-polls/](https://wordpress.org/plugins/wp-polls/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [flodi](https://wordpress.org/support/users/flodi/)
 * (@flodi)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/voting-template/#post-5134597)
 * It seems voting doesn’t work in any case. I’ve inserted the button and radios,
   I’ve checked header an footer, and I’ve also debugged the javascript and poll_vote()
   is invoked, but the vote is not recorded.
 * Please, I’m in an hurry, my customer is going to kick my ass 🙂
 * Thank you very much
 * If you need it I can also give you an admin account to check.
 * But if you go there [http://granapadanocheese.com.cn/it/greatest-chef/](http://granapadanocheese.com.cn/it/greatest-chef/)
   with any inspection tools you can see for yourself what happens.
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/voting-template/#post-5134604)
 * Sorry, the plugin was not designed to be in that way.
 * My plugin is open sourced [https://github.com/lesterchan/wp-polls](https://github.com/lesterchan/wp-polls)
   so feel free to fork it and modify it but I don’t provide support for modifications
   to my plugin.
 *  Thread Starter [flodi](https://wordpress.org/support/users/flodi/)
 * (@flodi)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/voting-template/#post-5134609)
 * Ok, I understand. I’ve managed a different layout which use the radio button,
   as it is the default mechanism. So I’ve restored the radio buttons.
 * But, as in my last message, even so the vote is not saved.
 * I’ve checked header an footer, and I’ve also debugged the javascript and poll_vote()
   is invoked, but the vote is not recorded.
 * Can you please help me to understand why the vote is not saved?
 * If you go to [http://granapadanocheese.com.cn/it/greatest-chef/](http://granapadanocheese.com.cn/it/greatest-chef/)
   with any inspection tools you can see what happens.
 * Thank you.
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/voting-template/#post-5134613)
 * Does it work on the default twentyforteen theme in the first place?
 *  Thread Starter [flodi](https://wordpress.org/support/users/flodi/)
 * (@flodi)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/voting-template/#post-5134617)
 * I’m using the DIVI theme from Elegant Themes.
 * For testing purpose, I’ve created a page in which I’ve put only the poll, and
   it works.
 * If i put this:
    <object id=”gfvideo” height=”350″ style=”width: 100%;” data=”
   [http://player.video.qiyi.com/ae9b0eab7e943d4ad01dbdb9b9687532/0/0/v_19rrhnt9qk.swf-albumId=265996000-tvId=265996000-isPurchase=0-cnId=6″&gt](http://player.video.qiyi.com/ae9b0eab7e943d4ad01dbdb9b9687532/0/0/v_19rrhnt9qk.swf-albumId=265996000-tvId=265996000-isPurchase=0-cnId=6″&gt);
 * the poll stop working. Do you have any idea why?
 *  Thread Starter [flodi](https://wordpress.org/support/users/flodi/)
 * (@flodi)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/voting-template/#post-5134625)
 * Here there is the page: [http://granapadanocheese.com.cn/it/greatest-chef/](http://granapadanocheese.com.cn/it/greatest-chef/)
 * If I simply take out the embedded video, it works.
 * With the video, it does not works.
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/voting-template/#post-5134642)
 * Looks like you have tried another poll plugin since WP-Polls doesn’t use `http://
   granapadanocheese.com.cn/?pollone=poll-submitted`
 * Good luck, I hope it fits your use case better =)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Voting template’ is closed to new replies.

 * ![](https://ps.w.org/wp-polls/assets/icon.svg?rev=977996)
 * [WP-Polls](https://wordpress.org/plugins/wp-polls/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-polls/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-polls/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-polls/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-polls/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-polls/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/voting-template/#post-5134642)
 * Status: resolved