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?


  1. Evelyn

    I installed the instagram widget and it was working fine. But now the widget is still on my website but the instagram pictures and feed won’t show. Yet when you click on the invisible pictures it links you to my instagram. the pictures are just somehow invisible.
    Can you help me with that please?


    1. Phil (pipdig)

      Hi Evelyn, it looks like there is an older version of the “pipdig Power Pack” plugin installed on your site. Please follow the steps in section 3 of this guide to update it. After that, please go to the ‘pipdig > Instagram’ page in your dashboard. I think this should fix the widget after that.

  2. Dawn

    Can I post from the blog directly into instagram and pinterest?

    1. Phil (pipdig)

      Hi Dawn, I don’t think this is possible, however there might be a plugin available to do it. I think it would require a third party hosted service though, since Pinterest and Instagram don’t provide that type of feature directly.

      1. Dawn

        Quick question: How do I get my most recent post to display first? In chronological order?

        1. Phil (pipdig)

          Your most recent post should display automatically. If it is not, then this might mean that some of your posts are set as sticky perhaps?

  3. Heather | thedomesticdiva.org

    Hi Phil,
    Quick question: is there a shortcode to display the feed for a particular hashtag on a wordpress page (instead of a profile)?
    Thanks for your help.

    1. Phil (pipdig)

      Hi Heather, that’s not possible with this particular shortcode. However I think it is possible with this plugin.

  4. 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 and will not be shown publicly.
If you do not yet have a website, simply enter "none" in the box.