WordPress.org

Ready to get started?Download WordPress

Forums

WP-Polls
Hiding poll if no polls are active (1 post)

  1. p4004
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic