title: Creating a custom Wordpress Shortcode with 2 arrays
body: <p>I'm trying to created a custom shortcode in wordpress but I can't get it working. </p>
  
  <p>Here's the code I have so far:</p>
  
  <pre><code>function wp_test_video($atts) {
       extract(shortcode_atts(array(
  
            'X' =&gt; ''
            'Y' =&gt; ''
  
       ), $atts));
  
      return '[iframe src="http://www.example.com/test.php?X='.$atts['X'].'&amp;Y='.$atts['Y'].'"]';
  }
  
  
  
  add_shortcode('test', 'wp_test_video');
  </code></pre>
  
  <p>Everytime I try and insert it into my functions.php file my site just breaks.</p>
  
  <p><strong>EDIT:</strong> The shortcode is now working but it seems to be acting differently from the same code inserted without the shortcode.</p>
  
  <p>Here is an image of the compiled code from the shortcode in a post by itself:</p>
  
  <p><a href="http://i.imgur.com/4lM8jC5.jpg" rel="nofollow">http://i.imgur.com/4lM8jC5.jpg</a></p>
  
  <p>Here is what a post looks like when using the shortcode to generate the same code:</p>
  
  <p><a href="http://i.imgur.com/gxk6k3C.jpg" rel="nofollow">http://i.imgur.com/gxk6k3C.jpg</a></p>
  
  <p>The video is embedding but it's breaking out of the article wrapper causing none of widgets or comments to work (also appears to mess up the search bar at the top).</p>