• Resolved af3

    (@af3)


    I am using [poll id=”-2″] in a page to show random polls as well as [poll id=”0″]. These showed random polls but include all those that I have voted.

    How do I show only polls that are open and I have not voted (so I can vote)? I log votes via username and there are polls with no votes yet.

    Thanks,

    https://www.ads-software.com/plugins/wp-polls/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Unfortunately, you can’t the shortcode only allows you to embed specific poll or random polls. It doesn’t check whether you have voted for because it will be heavy for sites with lots of polls/user votes to do it.

    Thread Starter af3

    (@af3)

    Thanks @gamerz — I have about 50 fun polls (intranet wordpress) and seems like users are randomly seeing polls that they have not voted in the poll page. They would refresh the page a few times before they can see poll that they can actually vote .. is this the expected behaviour ?

    Plugin Author Lester Chan

    (@gamerz)

    Yes, that is that expected behaviour because for random poll it is just random. It doesn’t care whether the user voted on it.

    If you show the polls in a widget you can use the Widget Logic plugin to show the polls conditionally.

    Syntax is (!check_voted(12)) where 12 is the number of the poll.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show only polls that I have not voted’ is closed to new replies.