WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Embedding Short Codes in my Javascript

[Resolved] Embedding Short Codes in my Javascript

  • charma@hotmail.com
    Member

    @charmahotmailcom

    Hi,

    I really link your plug-in, it saved me so much headache writing and managing all my code. Now I need your help.
    I’m writing an jquery/javascript code that inserts a set of HTML code into my page when on-click. How do I also insert a shortcode provided by another plug-in? I’ve tried to directly insert the shortcode, but it will just print out as text.

    Much Thanks,
    Charles

    http://wordpress.org/extend/plugins/css-javascript-toolbox/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wipeoutmedia
    Participant

    @wipeoutmedia

    Hello Charles,

    I’m very glad that you happy using the Plugin and find it useful!

    I’m also sorry for the delay!

    CJT is not parsing Shortcodes entered in the code Block. This is not a bug. This feature is not included in all the released versions.

    Just I need to understand the case you facing. I was thinking of asking you: Why you didn’t just simply use this Shortcode inside the post itself? I believe you would repeat this for many times as you need to get the Shortcode involved in too many requests/posts/pages, right? So you need to simply use 1 single Code Block to serve all those requests!

    Thanks for contacting us. Please feel free to contact us when you need!

    Thank you,
    AHmed

    Plugin Author wipeoutmedia
    Participant

    @wipeoutmedia

    BTW: You can use <?php echo do_shortcode(‘[SHORT-CODE]’); ?> PHP tag to retrieve the content of a Plugin Shortcode by replacing [SHORT-CODE] with Plugin Shortcode.

    Hope that helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Embedding Short Codes in my Javascript’ is closed to new replies.