# Embedding not working in Expression Engine page

**URL:** <https://meta.discourse.org/t/embedding-not-working-in-expression-engine-page/32188>\
**Category:** Support\
**Tags:** embedding\
**Created:** [2015年八月16日 20:50 UTC](https://meta.discourse.org/t/embedding-not-working-in-expression-engine-page/32188 "2015-08-16T20:50:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![barryparr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryparr/32/105155_2.png) [@barryparr](https://meta.discourse.org/u/barryparr)\
**Post date:** [2015年八月16日 20:50 UTC](https://meta.discourse.org/t/embedding-not-working-in-expression-engine-page/32188/1 "2015-08-16T20:50:48Z")

</div>

I’m trying to get embedding set up on my site. Topics are being created in my Discourse forum, but the topic and replies are not showing up on my site.

The site uses Expression Engine. It’s a PHP-based CMS. But all pages are cached & delivered as flat html.

Here’s the embed code on [this page](http://coastsider.com/site/news/testing_led_lights_on_the_midcoast/6285)

```
<div id="discourse-comments"></div>

<script type="text/javascript">
  var discourseUrl = "http://forum.coastsider.com/",
      discourseEmbedUrl = 'http://coastsider.com/site/news/testing_led_lights_on_the_midcoast';

  (function() {
    var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
      d.src = discourseUrl 'javascripts/embed.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
  })();
</script>

```

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2015年八月16日 20:51 UTC](https://meta.discourse.org/t/embedding-not-working-in-expression-engine-page/32188/2 "2015-08-16T20:51:48Z")

</div>

Likely due to the extra slash in the URL? Double check your settings, please.

What do you think @eviltrout?

---

<div class="post-metadata">

**Author:** ![barryparr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryparr/32/105155_2.png) [@barryparr](https://meta.discourse.org/u/barryparr)\
**Post date:** [2015年八月16日 21:00 UTC](https://meta.discourse.org/t/embedding-not-working-in-expression-engine-page/32188/3 "2015-08-16T21:00:07Z")

</div>

I deleted the slash in the URL, but that didn’t help.

---

<div class="post-metadata">

**Author:** ![barryparr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryparr/32/105155_2.png) [@barryparr](https://meta.discourse.org/u/barryparr)\
**Post date:** [2015年八月17日 03:00 UTC](https://meta.discourse.org/t/embedding-not-working-in-expression-engine-page/32188/4 "2015-08-17T03:00:33Z")

</div>

I solved the problem. Expression Engine uses curly braces to indicate variables, so it was changing the Javascript.

The solutions is to put the braces on separate lines, per the EE site on Stack Overflow:

> <https://stackoverflow.com/questions/6514647/expressionengine-rendering-js-code-with-brackets>

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2015年八月17日 03:38 UTC](https://meta.discourse.org/t/embedding-not-working-in-expression-engine-page/32188/5 "2015-08-17T03:38:57Z")

</div>


