lesterchan / 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.
https://wordpress.org/plugins/wp-polls/
94 stars 78 forks source link

Multiple Polls in Sidebar have same ID #24

Closed jackennils closed 10 years ago

jackennils commented 10 years ago

Hi!

I'm using WP-Polls on some of my sites in combination with WP Fastest Cache plugin, which is actually the only caching plugin which is fully compatible with WP-Polls.

However, as soon as there are multiple polls in the sidebar, there's a bug when the caching plugin tries to update the polls.

Please take a look at the below screenshot. As you can see, I have two polls in my sidebar. ID 20 and ID 22. But the div-id and polls-id are both the same (20). If you could fix this, WP Fastest Cache would work correctly again.

wp-polls_bug

Thanks so much!

You can also refer to the thread in the WP support forums: http://wordpress.org/support/topic/found-an-issue-with-wp-polls-plugin

Best regards Nils

lesterchan commented 10 years ago

I am not sure what I can do because it is the caching plugin that is caching the poll.

Actually, regardless of which caching plugin, it will not work well with WP-Polls because the initial load of the poll is done in PHP and not JS. To have a fully compatible plugin with caching, JS with AJAX is the way to go.

I would recommend a totally JS based polls like https://polldaddy.com/ instead