Title: Shortcode not working inside FAQ section
Last modified: December 29, 2022

---

# Shortcode not working inside FAQ section

 *  Resolved [arnavwp](https://wordpress.org/support/users/arnavwp/)
 * (@arnavwp)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/shortcode-not-working-inside-faq-section/)
 * Hello,
 * I am trying to add the poll I have created inside “FAQ section” block. My end
   goal is to create an accordion with multiple polls. I tried using the shortcode
   directly inside the FAQ description, but it didn’t work. I am not a programmer,
   but I tried to look for a solution in the support threads here and online. Based
   on the results online, I tried this code inside the FAQ description.
 *     ```wp-block-code
       <div id="best-picture">
       <?php echo do_shortcode('[yop_poll id="1"]'); ?>
       </div>
       ```
   
 * But this doesn’t work either.
 * Could you please tell me how to use the shortcode within another block/ HTML 
   element?
 * Thanks a lot!
 * Regards,
 * Arnav

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

 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/shortcode-not-working-inside-faq-section/#post-16328194)
 * Hey Arnav
 * Can you give us more details on the block you are using?
   Are you referring to
   a block in Gutenberg editor?
 *  Thread Starter [arnavwp](https://wordpress.org/support/users/arnavwp/)
 * (@arnavwp)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/shortcode-not-working-inside-faq-section/#post-16328357)
 * Hello,
 * Thank you for your response!
   It is a Gutenberg block available in my theme Vodi
   by Madras Themes. It’s called FAQ Section.
 * [Here ](https://drive.google.com/file/d/1oVaLfWIw1JnxgOZlaS_DNvfkaNknr7ky/view?usp=sharing)
   is the screenshot of the block settings.
 * Looking forward to hearing from you.
 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/shortcode-not-working-inside-faq-section/#post-16328410)
 * we would need to run tests with that specific block to be able to assist.
 * do you have a staging site where we can run some tests?
 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/shortcode-not-working-inside-faq-section/#post-16335472)
 * [@arnavwp](https://wordpress.org/support/users/arnavwp/) were you able to get
   it to work?
 *  Thread Starter [arnavwp](https://wordpress.org/support/users/arnavwp/)
 * (@arnavwp)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/shortcode-not-working-inside-faq-section/#post-16344073)
 * Hello,
   Sorry for not responding earlier. I was away during Holidays.Unfortunately
   I don’t have a staging site, neither was I able to get it to work.Not sure how
   to proceed in this case.
 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/shortcode-not-working-inside-faq-section/#post-16344243)
 * Hello
 * Please contact us on our website so we can find a solution.

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

The topic ‘Shortcode not working inside FAQ section’ 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/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 7 replies
 * 2 participants
 * Last reply from: [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/shortcode-not-working-inside-faq-section/#post-16344243)
 * Status: resolved