WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. agent14
    Member
    Posted 3 months 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.

    thanks

    https://wordpress.org/plugins/yop-poll/

  2. YOP
    Member
    Plugin Author

    Posted 3 months 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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.