• Resolved lkeiko

    (@lkeiko)


    We are using the following shortcode [yop_poll_archive max=”1″ sortdir=”desc” show=”active”] to display the latest active poll on our site.

    Our goal is to be able to schedule out these polls in advance by setting a start and end date.

    It looks like the “active” param only checks if the endDateOption has not passed, but it does not check to see if the start date is in the future. So in our case, we scheduled our latest poll to start next week and end in a month, but it is being displayed using the listed shortcode above.

    Is it possible to add a check for the start date to the active param logic?

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author YOP

    (@yourownprogrammer)

    Hello

    It makes sense to check for start date as well since a poll that’s not currently accepting votes can’t be called “active”.
    Will make sure this fix is included in the next release.

    Thank you for your feedback.

    • This reply was modified 4 years, 4 months ago by YOP.
    Plugin Author YOP

    (@yourownprogrammer)

    Hello

    We have released a new version that should fix the issue you mentioned.
    Can you give it a try and let us know if everything is ok now?

    Thank you.

    Thread Starter lkeiko

    (@lkeiko)

    The feature works great. Thank you for updating this so quickly.

    In addition, I’m not sure if this was on purpose since it’s labeled as ‘archive’ in the shortcode, but it would also be great if the [yop_poll_archive] shortcode only pulled published posts and not also drafts.

    Plugin Author YOP

    (@yourownprogrammer)

    Thank you for your feedback.

    Once again, you are right.
    Draft polls should not be included in this display.

    Will fix this in the next release.

    Plugin Author YOP

    (@yourownprogrammer)

    @lkeiko we have released a new version today that addresses the published issue you mentioned.

    Please give it a try and let us know if everything works as expected now.

    Thank you.

    Thread Starter lkeiko

    (@lkeiko)

    Everything is perfect. Thanks so much!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[yop_poll_archive] active param feature request’ is closed to new replies.