Support » Plugin: YOP Poll » embed poll in after votes section?

  • agent14

    (@agent14)


    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/

Viewing 1 replies (of 1 total)
  • Plugin Author YOP

    (@yourownprogrammer)

    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

Viewing 1 replies (of 1 total)
  • The topic ‘embed poll in after votes section?’ is closed to new replies.