# How to embed an Instagram feed on WordPress

One post or a live feed, pasted into a Custom HTML block. The user-role and plan rules that decide whether the script runs.

By Rohin Aggarwal · 2026-11-21

You pasted an Instagram link into a WordPress post and hit publish. The page shows a bare link. Then you pasted the widget code, and it vanished on save. Both have a plain cause, and both take a minute to fix.

To embed an Instagram feed on WordPress, paste the embed code into a Custom HTML block. That works for one post from Instagram, or a whole feed from a widget. The block must keep the script. On self-hosted WordPress that depends on your user role. On WordPress.com it depends on your plan.

**What you need to know**

- **Custom HTML block:** type /html in the editor, click Edit HTML, paste, click Update.
- **Self-hosted WordPress:** users without unfiltered_html, such as Contributors, lose script tags on save.
- **WordPress.com:** script tags need a paid plan with hosting features turned on.
- **There is no Idukki plugin in the WordPress.org directory.** The embed code is the whole install.

## Step 1: add a Custom HTML block

1. Open the page or post in the block editor.
2. Click the Block Inserter, or type /html in a new paragraph and press Enter.
3. Click Edit HTML on the Custom HTML block.
4. Paste your code. A preview shows beside it.
5. Click Update, then publish the page and check it in a private window.

> **Why the code vanished:** WordPress strips script and iframe tags for users without the unfiltered_html capability, such as Contributors. Ask an Administrator to paste the code, or to change your role.

## Step 2a: embed one Instagram post or Reel

Open the post on instagram.com in a browser. Click the three-dot menu, choose Embed, then Copy embed code. Paste it into the Custom HTML block. Pasting a bare Instagram link no longer turns into an embed. WordPress dropped that in 2020, when Meta put its embed lookup behind an access token.

## How to do it in Idukki: a live Instagram feed on WordPress

**From Instagram to a WordPress page**
1. **New collection** — In Collections, click New collection and pick Instagram.
2. **Add sources** — Your username, Reels, a hashtag or posts that tag you.
3. **Pick a layout** — Grid, carousel, masonry or a video layout.
4. **Copy code** — Open Publish and copy the embed code.
5. **Paste in WordPress** — Paste it into a Custom HTML block and update.
_The Idukki route. Menu names as they appear in the dashboard._

```html
<div data-ugc="idukki" data-bguid="YOUR_BGUID" data-guid="YOUR_COLLECTION_GUID"></div>
<script src="https://idukki-cdn.com/version/script_0" async></script>
```

Your two IDs come from Publish. Two galleries on one page? Paste the full code into each block. The script loads once. New posts join the feed as the collection syncs, with no plugin to update.

**Plugin feed against the embed code**
A typical Instagram feed plugin:
- One more plugin to update and secure
- Your own Meta connection to keep alive
The Idukki embed code:
- No plugin: a Custom HTML block
- Idukki collects the posts on its servers
- Handles, Reels, hashtags and tagged posts in one feed

## Link posts to your products

Tag products on any post in Idukki. On a plain WordPress site, the product button opens the product page in a new tab. Running WooCommerce? Read [the WooCommerce guide](/blog/embed-instagram-feed-on-woocommerce) and the [WooCommerce page](/platforms/woocommerce).

## If the feed does not show

| Symptom | Check |
| --- | --- |
| The block is empty after saving | Your role lacks unfiltered_html, or your WordPress.com plan blocks scripts |
| A bare link instead of a post | Use the Embed code from Instagram, not the post URL |
| Gallery shows in the editor, not live | Clear your caching plugin, then reload |
| Empty gallery box | The collection has posts, and both IDs match Publish |

**The practical choice:** One post in an article? Use Instagram's embed code. A feed that stays current with no plugin? Paste the Idukki code into a Custom HTML block.

### Related guides

- [embed an Instagram feed on any site](/blog/embed-instagram-feed-on-website)
- [embed Google reviews on WordPress](/blog/embed-google-reviews-on-wordpress)
- [Instagram on Wix](/blog/embed-instagram-feed-on-wix)
- [Instagram on Squarespace](/blog/embed-instagram-feed-on-squarespace)

More on WordPress: [Idukki for WordPress](/platforms/wordpress). Mixing Instagram with TikTok or YouTube in one feed? That is a social media aggregator. [The aggregator guide](/blog/best-social-media-aggregator-tools) compares the options.

Automate it: [track new Instagram UGC in Airtable](/automations/instagram-ugc-to-airtable) and [feature your best posts](/automations/top-posts-to-homepage-gallery).

### Questions people ask

**Q: Is there an Idukki WordPress plugin?**

A: Not in the WordPress.org directory. Paste the embed code into a Custom HTML block.

**Q: Why did WordPress remove my embed code?**

A: Users without unfiltered_html lose script tags on save. Ask an Administrator.

**Q: Can I add scripts on WordPress.com?**

A: Only on a paid plan with hosting features turned on.

**Q: Does pasting an Instagram link still embed the post?**

A: No. Use the Embed code from the post's menu on instagram.com.

**Q: Will the feed slow my WordPress site?**

A: Measure it. Idukki's widget runtime is 79 KB gzipped, by our own measurement.

### Sources
- [WordPress.org: Custom HTML block](https://wordpress.org/documentation/article/custom-html/) — Adding the block, and unfiltered_html in WordPress 7.0. Read 21 November 2026.
- [WordPress.com: Custom HTML block](https://wordpress.com/support/wordpress-editor/blocks/custom-html-block/) — Script tags need a paid plan with hosting features. Read 21 November 2026.
- [Instagram Help: Embed an Instagram post or profile](https://help.instagram.com/620154495870484/) — Embed steps for posts and Reels.
- [Idukki pricing](/pricing) — Free plan up to 20,000 widget impressions a month.

---
Canonical: https://idukki.io/blog/embed-instagram-feed-on-wordpress
Tags: instagram, wordpress, embed, instagram-feed, ugc
