Running shortcode inside the content with AJAX
-
I am running version 0.2.0
Here is the shortcode in my content:
[playbuzz-game game=”https://www.playbuzz.com/tyler12/which-type-of-surfer-are-you” info=”true” recommend=”false” comments=”false”]It loads fine on this page:
https://www.wickedsherpa.com/quiz-kind-surfer/But if you go to the homepage and click on the article from there it will not load the playbuzz game.
I am using ajax to load the content of the post on the homepage. If you inspect the post loaded from the homepage you will see that the shortcode loads the script and the div:
<script type=”text/javascript” src=”https://www.playbuzz.com/bundles/feed”></script>
<div class=”pb_feed” data-key=”wickedsherpa.localhost” data-tags=”All” data-game=”https://www.playbuzz.com/tyler12/which-type-of-surfer-are-you” data-game-info=”true” data-comments=”false” data-shares=”true” data-recommend=”false” data-margin-top=”0″></div>but nothing gets displayed. I think https://www.playbuzz.com/bundles/feed is not loading the additional javascritps needed to display the playbuzz.
I also tested with the embed code from your site, but still no go.
- The topic ‘Running shortcode inside the content with AJAX’ is closed to new replies.