Skip to content

Instantly share code, notes, and snippets.

@Viper007Bond
Created October 26, 2012 21:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Viper007Bond/3961652 to your computer and use it in GitHub Desktop.
Save Viper007Bond/3961652 to your computer and use it in GitHub Desktop.
<?php
wp_oembed_add_provider( 'http://instagram.com/p/*', 'http://api.instagram.com/oembed' );
add_shortcode( 'instagram', 'shortcode_instagram' );
function shortcode_instagram( $atts ) {
global $wp_embed;
return $wp_embed->shortcode( $atts, $atts['url'] );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment