YOP Poll
embed poll in after votes section? (2 posts)

  1. agent14
    Posted 1 year ago #

    is this possible? i doubt it to be honest lol, but i'm just wondering if u can call the poll here - using the same or a similar command as in a post

    [yop_poll id="5"] - this is an example of how the poll is called in a post

    is there a wordpress plugin where i can do this? i know in joomla u can have a module anywhere - by using plugins. so i'm wondering if there is a similar feature in wordpress.



  2. YOP
    Plugin Author

    Posted 1 year ago #

    Hey agent14,

    Edit your template and in Template After Vote section add %AFTER-VOTE-POLL% (or any other tag you want).

    Next, edit inc/yop_poll_model.php and in return_poll_html function, before return $template; add

    $template = str_ireplace( '%AFTER-VOTE-POLL%',return_yop_poll( $new_poll_id, $tracking_id ), $template );

    Also, in strip_all_tags function, in the array corresponding to $tags variable add %AFTER-VOTE-POLL% so you'll have

    $tags = array( '%AFTER-VOTE-POLL%', '%CAPTCHA-PLAY%',.....

    Best wishes,

    YOP Team

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.