YOP Poll
[resolved] Missing View Poll Archive link (7 posts)

  1. ercanrua
    Posted 3 years ago #

    I seem to be missing the View Poll Archive link, assuming there should be one in my widget along with the Vote button and the View Results link.


    I've added a Poll Archive menu item so folk can see the archive page, but assume there should be a link in the poll widget as it's a series of settings in YOP Poll | YOP Poll Options | Archive Options.

    Am I wrong in this? or do I have something wrong in my site, I wonder?...



  2. YOP
    Plugin Author

    Posted 3 years ago #


    By default, there is no link for Poll Archive in YOP Poll Widget.
    If you want to have the link appear, you will need to edit the templates to add the link.

    Please let us know if you need more help with this.

    Best Regards,
    YOP Team

  3. ercanrua
    Posted 3 years ago #

    But I should expect to see Poll Archive on the Polls page, then?

    I guess my problem is that of understanding at the moment. I don't see the archive anywhere, unless I create a page for it and link directly to that.

    If there are settings for View Poll Archive Link and View Poll Archive Link Label, I figure I should be expecting to see the link show up somewhere! Shouldn't I?

    I'm okay, I think, with making a change to the template php if I need to, though. I presume that would be yop_poll.php, right? Any tips or suggestions?


  4. YOP
    Plugin Author

    Posted 3 years ago #

    If you want to show a link to the polls archive, you can edit the template(s) you are using for your polls to add the following code


    For example:

    <div id="yop-poll-results-%POLL-ID%">%POLL-VIEW-RESULT-LINK%</div>

    Also, you will need to have View Poll Archive Link set to Yes.

    Please let us know if you have further questions.

    Best Regards,
    YOP Team

  5. ercanrua
    Posted 3 years ago #

    Absolutely perfect. Just what I was looking for, thanks!

    For anyone else interested, I made the following changes:

    To "Template Before Vote"

    <div id="yop-poll-results-%POLL-ID%">%POLL-VIEW-RESULT-LINK%</br>

    To "Template After Vote"

    <div id="yop-poll-back-%POLL-ID%">%POLL-BACK-TO-VOTE-LINK%
              <span style="float:right;">%POLL-VIEW-ARCHIVE-LINK%</span></div>

    And in the CSS

    #yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
        float: right;
        margin-bottom: 0px; /*** was 20px ***/
        margin-top: -20px;
        width: auto;

    Thanks, YOP!

  6. kalligator
    Posted 2 years ago #

    Is the polls archive a virtual page or do we have to create it and insert some shortcode into it?

    At the moment the link I use in the "Poll Archive Url:" field is non-existing and leads to nowhere when followed.

  7. YOP
    Plugin Author

    Posted 2 years ago #

    Hi kalligator,

    You can create a new page and add [yop_poll_archive] to it.
    Then copy the link to the page you've just created in
    "Poll Archive Url:" field


    YOP Team

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.