The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. charma@hotmail.com
    Posted 3 years ago #


    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,


  2. wipeoutmedia
    Plugin Author

    Posted 3 years 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,

  3. wipeoutmedia
    Plugin Author

    Posted 3 years 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

  • CSS & JavaScript Toolbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.