Title: Adding embed code to accordion content
Last modified: December 18, 2025

---

# Adding embed code to accordion content

 *  Resolved [bsetzer](https://wordpress.org/support/users/bsetzer/)
 * (@bsetzer)
 * [5 months, 3 weeks ago](https://wordpress.org/support/topic/adding-embed-code-to-accordion-content/)
 * Hi there –
 * What is the preferred way to embed code into accordions?
 * We have in the past embedded infogram data visualizations in our accordions without
   issue. I happened to update an accordion that had an embed code in place and 
   it was stripped out. I have tried both an JS embed (gets stripped out) and an
   iframe embed (never loads). You can see an example of what I am trying to embed
   here: [https://carnegieclassifications.acenet.edu/elective-classifications/community-engagement/](https://carnegieclassifications.acenet.edu/elective-classifications/community-engagement/)(
   expand “2029 cycle”).
 * Thanks in advance!
    -  This topic was modified 5 months, 3 weeks ago by [bsetzer](https://wordpress.org/support/users/bsetzer/).

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

 *  Plugin Support [hasanrang05](https://wordpress.org/support/users/hasanrang05/)
 * (@hasanrang05)
 * [5 months, 3 weeks ago](https://wordpress.org/support/topic/adding-embed-code-to-accordion-content/#post-18761816)
 * We understand the issue, Currently our all plugins under review process, we have
   to escape correctly in all output, wp_kses_post causing the issue,
 * we will update plugin to add this feature. please patience.
 *  Thread Starter [bsetzer](https://wordpress.org/support/users/bsetzer/)
 * (@bsetzer)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/adding-embed-code-to-accordion-content/#post-18769112)
 * Hi there – any update on this issue?
 *  Plugin Support [hasanrang05](https://wordpress.org/support/users/hasanrang05/)
 * (@hasanrang05)
 * [5 months ago](https://wordpress.org/support/topic/adding-embed-code-to-accordion-content/#post-18773701)
 * Could you please try latest version, and let me know the result.
 * we also added a filter hook for allowed tags for accordion body content
 * You can add support any tags you want
 * See the example code
 * [https://gist.github.com/pickplugins/ffc60bef0323716ab9678ec9c3589813](https://gist.github.com/pickplugins/ffc60bef0323716ab9678ec9c3589813)

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-embed-code-to-accordion-content%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/accordions/assets/icon-256x256.png?rev=2959657)
 * [Accordions](https://wordpress.org/plugins/accordions/)
 * [Support Threads](https://wordpress.org/support/plugin/accordions/)
 * [Active Topics](https://wordpress.org/support/plugin/accordions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accordions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accordions/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [hasanrang05](https://wordpress.org/support/users/hasanrang05/)
 * Last activity: [5 months ago](https://wordpress.org/support/topic/adding-embed-code-to-accordion-content/#post-18773701)
 * Status: resolved