Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

[embedyt] shortcode does not exist in ajax side

$
0
0

Replies: 0

Hello there!

I’m using your plugin to embed youtube videos, but [embedyt]http://[/embedyt] shortcode do not display iframe after ajax call.
Option in admin panel checked as “use ajax” https://prnt.sc/ret4wi

I have block with ajax filter after standard the_content on single post page.
https://prnt.sc/ret858

On ajax side I tried this code:

echo do_shortcode( get_the_excerpt() );
echo do_shortcode( get_the_content() );
the_content()

All variations return [embedyt] shortcode as static text.

Standard Usage in single.php
shortcode_exists( '[embedyt]' ) //return true

Inside wp_ajax_ and wp_ajax_nopriv_
shortcode_exists( '[embedyt]' ) //return false


Viewing all articles
Browse latest Browse all 59525

Trending Articles