Support » Plugin: YOP Poll » Shortcode not working

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author YOP

    (@yourownprogrammer)

    Hi Paoz,

    Until we figure our what causes that problem, instead of shortcodes you can use <?php return_yop_poll( $poll_id ); ?>

    You have to add it to your wordpress theme template and $poll_id is your poll’s id.

    Best wishes,

    YOP Team

    Hello, thank you very much… This would be perfect if i could pass the $poll_id dinamically, because i need to display different polls in the same page template… Is there a way to do this?

    Regards,
    Paoz

    Plugin Author YOP

    (@yourownprogrammer)

    Hey Paoz,

    You could replace “$poll_id” with “-1” for Current active poll, “-2” for Latest Poll ID and “-3” for Random Poll.

    Best wishes,

    YOP Team

    Ok thank you…

    mrhaha80

    (@mrhaha80)

    hi,

    I tried :
    <?php return_yop_poll(2); ?> but the poll does not appear.

    I can see the code below when i “View Source”:
    <!–?php
    return_yop_poll(2);
    ?–>

    May I know what is the issue?

    Many thanks in advanced!

    Plugin Author YOP

    (@yourownprogrammer)

    Hi mrhaha80,

    Instead of <?php return_yop_poll(2); ?> you should use

    <?php return_yop_poll(-2); ?>

    Please try again and let us know if you need more help.

    Best wishes,

    YOP Team

    mrhaha80

    (@mrhaha80)

    Yeah!

    Many thanks!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Shortcode not working’ is closed to new replies.