Getting content with Ajax, [shortcode] content is missing. Any ideas??
-
Hello!
I’m retrieving content dynamically with AJAX techniques. However, the content that is returned is missing some stuff that is added to the post with [shortcode].
For example, if I embed a video player in my post by using a shortcode from JW Player Plugin for WordPress, and then try and retrieve that post content via ajax to inject into some other page, then i don’t get the embedded player. I can only see the player if I visit the actual post page normally.
Other plugins like NextGen Gallery, on the other hand, work just fine. NextGen Gallery content comes back with my ajax calls just fine.
I’m using jQuery kind of like this:
$(“.foobar”).load(“https://mysite.com/blog-post/”, function() { etc, etc… });The html that is returned is perfect except for it’s missing the embed code that the JW Player Plugin is supposed to inject.
Anyone know what might be the difference between those two plugins with respect to how they handle shortcodes?
- The topic ‘Getting content with Ajax, [shortcode] content is missing. Any ideas??’ is closed to new replies.