Displaying Instagram Feed without Access Token

jQuery, PHP, Wordpress

Last Updated

Adding a public Instagram feed for my clients is a headache nowadays, it requires to generate an access token to include in a plugin, even for a public feed. The issue is that we have to contact the client back and forth to get this all things work.

I found a solution from a script written by Javier Sanahuja, the codes he shares on GitHub, written in both pure Javascript and JQuery version.

Fast Way

I’ve compiled a simple plugin based on the JQuery version that you can download. Upload it to your server using the upload plugin inside WordPress or by FTP.

You can use the Plugin Editor to edit user name, image number, etc (I’m too lazy to create backend interface). Or you can do that before uploading the plugin by extract it and edit if offline.

Edit plugins from WordPress backend

The next step is to create a container using a widget or even in your post or page. Add this code in content editor using text mode:

<div id="instagram-feed"></div>

Or you can use custom HTML widget:

Ok, here’s my demo using this script:

Any idea? Fill the comment below

This site uses Akismet to reduce spam. Learn how your comment data is processed.