PHP code example of kerigansolutions / instagram-autogallery-wp
1. Go to this page and download the library: Download kerigansolutions/instagram-autogallery-wp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kerigansolutions / instagram-autogallery-wp example snippets
use KeriganSolutions\Instagram;
use KeriganSolutions\Instagram\WP\InstagramPost;
class Instagram extends Instagram\WP\Admin
{
// retrieve posts from WP database
public function getInstagramPosts($num = -1, $args = [])
{
return (new InstagramPost())->query($num, $args);
}
}
use KeriganSolutions\Instagram\WP\InstagramPost;
$feed = new InstagramPost;
$results = $feed->query(5);