Title: Shortcode not working
Last modified: August 21, 2016

---

# Shortcode not working

 *  Resolved [paozinho](https://wordpress.org/support/users/paozinho/)
 * (@paozinho)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-33/)
 * Hello everybody…
    When I paste the shortcode [yop_poll id=”1″] in the post text
   editor nothing happens..
 * If you want take a look this is the url:
    [http://clapiz-stage.espero.it/attivita/sondaggio-lorem-ipsum/](http://clapiz-stage.espero.it/attivita/sondaggio-lorem-ipsum/)
 * I tried to unistall and reinstall the plugin but nothing happens..
    This is the
   list of other plugins on the site:
 * Akismet
    Contact Form 7 Event Geek Meta Slider WP User Avatar Newsletter Wysija
 * I’m using wordpress twenty-twelve theme…
    Any idea to fix this problem ?
 * Thank you very much
    Paoz
 * [http://wordpress.org/plugins/yop-poll/](http://wordpress.org/plugins/yop-poll/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-33/#post-4091812)
 * 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
 *  Thread Starter [paozinho](https://wordpress.org/support/users/paozinho/)
 * (@paozinho)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-33/#post-4091858)
 * 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](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-33/#post-4091864)
 * 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
 *  Thread Starter [paozinho](https://wordpress.org/support/users/paozinho/)
 * (@paozinho)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/shortcode-not-working-33/#post-4091914)
 * Ok thank you…
 *  [mrhaha80](https://wordpress.org/support/users/mrhaha80/)
 * (@mrhaha80)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/shortcode-not-working-33/#post-4091996)
 * 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](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/shortcode-not-working-33/#post-4091997)
 * 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](https://wordpress.org/support/users/mrhaha80/)
 * (@mrhaha80)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/shortcode-not-working-33/#post-4091998)
 * Yeah!
 * Many thanks!!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Shortcode not working’ is closed to new replies.

 * ![](https://ps.w.org/yop-poll/assets/icon-256x256.png?rev=3524390)
 * [YOP Poll](https://wordpress.org/plugins/yop-poll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yop-poll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yop-poll/)
 * [Active Topics](https://wordpress.org/support/plugin/yop-poll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yop-poll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yop-poll/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [mrhaha80](https://wordpress.org/support/users/mrhaha80/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/shortcode-not-working-33/#post-4091998)
 * Status: resolved