WordPress.org

Support

Support » Plugins and Hacks » Hiding poll if no polls are active

Hiding poll if no polls are active

  • Hi,

    There is an option “Do not display poll in post/sidebar” when poll is closed, however, it doesn’t work if logging method if chosen to be “Logged by cookie”. So if I have voted in this poll, and next day admin closes the poll, I still can see it!

    In wp-polls.php, around line 145, I added this code:

    if(($poll_active == 0 )){
    	return false;
    //other ifs...

    If anyone knows a smarter way to solve this, please share with us.

    http://wordpress.org/extend/plugins/wp-polls/

  • The topic ‘Hiding poll if no polls are active’ is closed to new replies.