# Embed playbuzz quiz into post

**URL:** https://meta.discourse.org/t/embed-playbuzz-quiz-into-post/59183
**Category:** Support
**Created:** [March 15, 2017, 3:37pm UTC](https://meta.discourse.org/t/embed-playbuzz-quiz-into-post/59183 "2017-03-15T15:37:58Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [March 16, 2017, 6:43pm UTC](https://meta.discourse.org/t/embed-playbuzz-quiz-into-post/59183/7 "2017-03-16T18:43:01Z")

</div>

The playbuzz embed code has two parts - a `script` tag and a `div` tag. You can get it to load in Discourse by adding a site customization that appends the `script` tag to your forum’s `head` and then adds the `div` markup to the post that you want the quiz to appear in. This works, but it causes an error: `Cannot read property 'offsetTop' of undefined`. I’m guessing that’s related to Discourse infinite scrolling.

From looking at the Playbuzz forum - it’s a Discourse forum - probably the best way to do it would be to embed the quiz on a WordPress site with their WordPress plugin, and then embed an iframe on Discourse that has the WordPress page as it’s `src`. This works, but to get it setup correctly takes quite a lot of work.

---

_[View the full topic](https://meta.discourse.org/t/embed-playbuzz-quiz-into-post/59183)._
