WordPress.org

Ready to get started?Download WordPress

Forums

CSS & JavaScript Toolbox
[resolved] Embedding Short Codes in my Javascript (3 posts)

  1. charma@hotmail.com
    Member
    Posted 1 year ago #

    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/

  2. wipeoutmedia
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. wipeoutmedia
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.