Grazie al nostro amato WordPress, possiamo fare tante cose, e, tra queste, la possibilità di integrare tante funzionalità nel codice è l'arma vincente di questo CMS.

Oggi ci occuperemo di come integrare (tramite il comando oEmbed) Instagram in WordPress.

Tutto ciò di cui avete bisogno è di aprire un file .php vuoto e chiamarlo wpb-instagram.php, poi copiate il codice seguente e salvate il file

01 <?php
02 /*
03 Plugin Name: WPB Add Instagram oEmbed
04 Description: Adds oEmbed support for Instagram
05 Author: mrvpao
07 */
08
09 // Add Instagram oEmbed
10 function wpb_oembed_instagram(){
11 wp_oembed_add_provider( 'http://instagr.am/*/*','http://api.instagram.com/oembed' );
12 wp_oembed_add_provider( 'http://www.instagram.com/*/*','http://api.instagram.com/oembed' );
13 }
14 add_action('init','wpb_oembed_instagram');

Caricate il file nella cartella dei plugin e attivatelo.

Fatto! facile, no?