Tutorials

How to pull hashtagged photos from Instagram into WordPress

Taking a cue from David Yanofsky’s Pilots of Instagram story on Quartz, we wanted to write up a How To on pulling your own set of hastagged photos from Instagram. Using the WordPress plugin Alpine PhotoTile, we embedded the most recently-uploaded Instagram photos hashtagged #pilotlife. The featured image above was made by throwing six of these photos into Adobe Illustrator.

Install Alpine PhotoTile

First off, download and then upload the Alpine PhotoTile plugin to your WordPress Plugins page in your dashboard. Note: Most plugins don’t work for WordPress.com accounts. Upgrade to WordPress.org. Next, click Add User.

Screen Shot 2014-12-11 at 4.09.11 PM

 

Get your API information from Instagram

Alpine PhotoTile provides instructions on how to log into the Instagram developer’s page to get the information it needs.

inst

 

It’s easier than you think. Go to the Instagram developers page here. This is an A.P.I., or application programming interface. To access Instagram content, you must sign up for what amounts to a login and password. In their A.P.I. nomenclature, a Client ID and Client Secret. Here’s how to get started. First, sign in to your Instagram account.

Screen Shot 2014-12-11 at 4.00.55 PM

 

Next, click Manage Clients and put in relevant information.

Screen Shot 2014-12-11 at 4.15.59 PM

 

You’ll have to use a real phone number because they might text you to authenticate. Once you get through that, click Register a new client. That last field should be filled in with information supplied by Alpine PhotoTile in the Plugin section of your WordPress site.

Screen Shot 2014-12-11 at 4.21.02 PM

 

Click Register. You’ll see this screen with a bunch of mumbo jumbo.

Screen Shot 2014-12-11 at 4.23.49 PM

 

You’ll want to paste that CLIENT ID and CLIENT SECRET into the Alpine PhotoTile plugin settings page back in WordPress. By providing these keys, the WordPress plugin can now automatically go to Instagram, unlock the door for you, and retrieve the photos you’ve asked for.

DON’T MISS  How to build a map and use filters in Tableau Public

Screen Shot 2014-12-11 at 4.27.27 PM

 

Fill them in and then hit Add and Authorize New User. Now go to Shortcode generator.

Screen Shot 2014-12-11 at 4.35.00 PM

 

We used the hashtag #pilotlife and formatted the shortcode to display a gallery of four photos per row with a maximum of 30 photos. You can easily change these style settings.

Hit Generate shortcode and copy and paste that into a WordPress post or page.

Screen Shot 2014-12-11 at 4.37.25 PM

 

Click Publish and voilá, you’ve got a gallery of recently-updated Instagram photos tagged with the hashtag you’ve chosen.

Another way of harvesting Instagram photos by hashtag is by using IFTTT.com (If This Then That). This recipe puts them into a Google spreadsheet.

Screen Shot 2014-12-11 at 4.40.27 PM

 

Aleszu Bajak

3 thoughts on “How to pull hashtagged photos from Instagram into WordPress

Leave a Reply to Will Cancel reply

Your email address will not be published. Required fields are marked *

Get the latest from Storybench

Keep up with tutorials, behind-the-scenes interviews and more.