YOP Poll
Displaying the most voted option of a poll via shortcode? (2 posts)

  1. NicoPagel
    Posted 2 years ago #

    I would like to know if it is possible to show the most times voted option of one poll - i have integrated for example in a post - in this post too.

    Because I want to do this szenario (example):

    The logged in users can vote for their most loved flavor of icecream in a post called "Whats your favorite icecream" where I have integrated the poll itself via a shortcode. But other readers perhaps want to know what is the most loved flavor of icecream without voting themselves or pressing the "see results" button. So the best way would be to echo the most times votes option of this poll in the post. Or maybe under the post via php.

    But how can I achieve this?

    Thx for help!


  2. YOP
    Plugin Author

    Posted 2 years ago #

    Hi NicoPagel,

    You can not display only the most voted answer but you can display the results without your users having to vote or click on the View Results button.

    Edit your poll and in "Answers Advanced Options" set "Sorting Results in" to "Number of Votes" and "Sorting Results Rule" to "Descending".

    Next, in View Results Options, set View Results to "Before Vote". Also, set View Back To Vote Link to "Yes" and you can also change View Back To Vote Link Label: with the message you want.

    Best wishes,

    YOP Team

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.