instagram

The Jetpack by WordPress.com instagram shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[instagram]'); 
  1. // variable usage 
  2. $result = do_shortcode('[instagram]'); 
  3. echo $result;  

Defined (1)

The shortcode is defined in the following location(s).

/modules/shortcodes/instagram.php  
  1.  
  2.  
  3. // [instagram url="http://instagram.com/p/PSbF9sEIGP/"] 
  4. // [instagram url="http://instagram.com/p/PSbF9sEIGP/" width="300"] 
  5. add_shortcode( 'instagram', 'jetpack_shortcode_instagram' ); 
  6. function jetpack_shortcode_instagram( $atts ) { 
  7. global $wp_embed; 
  8.  
  9. if ( empty( $atts['url'] ) ) { 
  10. return '';