• Resolved wpChameleon

    (@wpchameleon)


    Hello there!

    I’m using your plugin to embed youtube videos, but [embedyt]https://[/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 3 replies - 1 through 3 (of 3 total)
  • Plugin Author embedplus

    (@embedplus)

    Hi,

    1) Uncheck this option in the Compatibility tab:
    Don’t Run Shortcode In Admin: Checking this will only allow the shortcode to run on the front-end of your website, and not in the admin area.

    2) also Uncheck “Debug mode”

    Does that help?

    Thread Starter wpChameleon

    (@wpchameleon)

    Don’t Run Shortcode In Admin

    Seems it’s working, thank you

    Plugin Author embedplus

    (@embedplus)

    Great. Please rate when you get a chance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[embedyt] shortcode does not exist in ajax side’ is closed to new replies.