Forums

wp-polls: Sidebar widget is updated when voting on a poll inside a post (2 posts)

  1. nicpow
    Member
    Posted 3 years ago #

    Hi

    I'm running a wp-polls instance in my sidebar.
    Also some of the post have a poll inside of them.

    If it so happens that the poll in the sidebar is the same one that's displayed inside the post, and the user votes on the one inside the post (or clicks the link to view results), the wp-polls instance in the sidebar displays the desired action. The wp-polls instance inside the post does not change or reflect the user's action at all.

    Is there a way to solve this?

    Best solution for me would be that all instances (if applicable) of wp-polls reflect the user's action.
    Alternative would be limiting the sidebar widget to never show the same poll as the one displayed inside a post (or multiple posts for that matter)... But I fear that will be more of a mess than the preferred solution.

    Can anyone help please?

    Thanks a lot!

    Paul

  2. Lester Chan
    Member
    Posted 3 years ago #

    You can't have 2 of the same poll within the same page be it in the sidebar or the post due to the conflict of the poll id.

Topic Closed

This topic has been closed to new replies.

About this Topic