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 @eaemileeanne. 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?