WordPress: Instagram Feed Shortcode

You can use this shortcode to display your Instagram feed in and post/page.

Please note: this is intended for use within posts/pages and should not be used in the sidebar or in a widget. We recommend the Instagram widget or customizer options for that instead.

How to use this shortcode

1. You will first need to connect your site to Instagram.

2. Now you can copy the following shortcode into any post/page:

This shortcode will display a grid of your recent Instagram posts like the example below:

By default, images are cropped into a square. If you would like the images to appear in their original shape (e.g squares or rectangles) you can add the “shape” parameter. For example:

This would display a grid like the example below:

PS. The images we’ve used in this example are from Emily’s Instagram feed. Go check her out!

You can also show the feed of a different Instagram account by adding the Access Token to the shortcode. For example:

You can also limit the number of images displayed by using:

If you’d like any new Instagram features you’re welcome to suggest this in the comments below 🙂

Was this article helpful?

2 Comments

  1. Sandra

    Hi phil,

    I just changed my instagram name and re-connected my instagram account to my blog but i still see my old username displayed. How can i update this?

    1. Phil (pipdig)

      Hi Sandra, have you also changed the link to your Instagram profile under ‘pipdig > Social Links’?

Leave a comment


The link to your website will be visible to support staff only. It will not be shown publicly.