Title: Inserting shortcodes not working..
Last modified: August 21, 2016

---

# Inserting shortcodes not working..

 *  Resolved [David Klhufek](https://wordpress.org/support/users/brtak/)
 * (@brtak)
 * [12 years ago](https://wordpress.org/support/topic/inserting-shortcodes-not-working/)
 * Hi, after update to the latest version of WP, the shortcode inserting stoped 
   working, I can’t click ok in the shortcode dialog.. can you check it pls..
 * [https://wordpress.org/plugins/slideshow-satellite/](https://wordpress.org/plugins/slideshow-satellite/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [cpres](https://wordpress.org/support/users/cpres/)
 * (@cpres)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/inserting-shortcodes-not-working/#post-4981523)
 * Thanks for letting me know about this, although I’m on the latest version of 
   WordPress and it still seems to be working OK for me…perhaps another plugin is
   conflicting with it.
 * Do you see any javascript errors on the page from having a Console open? (Firebug,
   Chrome Inspector)
 *  Thread Starter [David Klhufek](https://wordpress.org/support/users/brtak/)
 * (@brtak)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/inserting-shortcodes-not-working/#post-4981526)
 * Hi, ok, I found this error in console..
 *     ```
       <script>(function() {with (this[2]) {with (this[1]) {with (this[0]) {return function(event) {insertTag()
       };}}}})</script>
                                                     <script>
       var _self = tinyMCEPopup;
       function insertTag() {
           var satellite_type = jQuery('input[name="satellite_type"]:checked').val();
           var auto = jQuery('input[name="auto"]:checked').val();
           var thumbs = jQuery('input[name="thumbs"]:checked').val();
           var caption = jQuery('input[name="caption"]:checked').val();
           if (satellite_type == "post") {
               var post_id = jQuery('#post_id').val();
               var exclude = jQuery('#exclude').val();
               if (post_id == "th") {
                   var tag = '[satellite';
               } else {
                   var tag = '[satellite post_id=' + post_id + '';
               }
               if (exclude != "") {
                   tag += ' exclude="' + exclude + ' "';
               }
               if (auto == undefined) { tag += '';} else { tag += ' auto=' + auto+'';}
               if (caption == undefined) { tag += '';} else { tag += ' caption=' + caption;}
               if (thumbs == undefined) { tag += ']';} else { tag += ' thumbs=' + thumbs + ']';}
           } else if (satellite_type == "custom") {
               var gal_id = jQuery('#gal_id').val();
   
               var tag = '[satellite gallery='+ gal_id +'';
               if (auto == undefined) { tag += '';} else { tag += ' auto=' + auto;}
               if (caption == undefined) { tag += '';} else { tag += ' caption=' + caption;}
               if (thumbs == undefined) { tag += ']';} else { tag += ' thumbs=' + thumbs + ']';}		
   
           }
           if (window.tinyMCE) {
               window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, tag);
               tinyMCEPopup.editor.execCommand('mceRepaint');
               tinyMCEPopup.close();
           }
       }
       function closePopup() {
           tinyMCEPopup.close();
       }
       	</script>
       ```
   
 * Uncaught TypeError: undefined is not a function dialog.php:40
    Any idea?
 *  [ScottItchy](https://wordpress.org/support/users/scottitchy/)
 * (@scottitchy)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/inserting-shortcodes-not-working/#post-4981536)
 * Hi, Just found this problem myself after a bit of working out found the source
   of the problem in dialog.php line 56 I changed
    window.tinyMCE.execInstanceCommand(‘
   content’, ‘mceInsertContent’, false, tag); to window.tinyMCE.execCommand(‘mceInsertContent’,
   false, tag); And this solved the problem.
 *  Plugin Author [cpres](https://wordpress.org/support/users/cpres/)
 * (@cpres)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/inserting-shortcodes-not-working/#post-4981537)
 * You’re a life save Scottitchy! I’ve been swamped with a new job so I haven’t 
   been able to do some proper debugging, this will go in the upcoming edition for
   sure!
 *  Thread Starter [David Klhufek](https://wordpress.org/support/users/brtak/)
 * (@brtak)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/inserting-shortcodes-not-working/#post-4981540)
 * Thank you, it’s fixed..

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Inserting shortcodes not working..’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/slideshow-satellite_9bd8db.svg)
 * [Slideshow Satellite](https://wordpress.org/plugins/slideshow-satellite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slideshow-satellite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slideshow-satellite/)
 * [Active Topics](https://wordpress.org/support/plugin/slideshow-satellite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slideshow-satellite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slideshow-satellite/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [David Klhufek](https://wordpress.org/support/users/brtak/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/inserting-shortcodes-not-working/#post-4981540)
 * Status: resolved