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.
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.
In this article
Step 1: add a Custom HTML block
- 1Open the page or post in the block editor.
- 2Click the Block Inserter, or type /html in a new paragraph and press Enter.
- 3Click Edit HTML on the Custom HTML block.
- 4Paste your code. A preview shows beside it.
- 5Click Update, then publish the page and check it in a private window.
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
- 01
New collection
In Collections, click New collection and pick Instagram.
- 02
Add sources
Your username, Reels, a hashtag or posts that tag you.
- 03
Pick a layout
Grid, carousel, masonry or a video layout.
- 04
Copy code
Open Publish and copy the embed code.
- 05
Paste in WordPress
Paste it into a Custom HTML block and update.
<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 and the WooCommerce page.
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 |
Related guides
- embed an Instagram feed on any site
- embed Google reviews on WordPress
- Instagram on Wix
- Instagram on Squarespace
More on WordPress: Idukki for WordPress. Mixing Instagram with TikTok or YouTube in one feed? That is a social media aggregator. The aggregator guide compares the options.
Automate it: track new Instagram UGC in Airtable and feature your best posts.
Questions people ask
Is there an Idukki WordPress plugin?
Not in the WordPress.org directory. Paste the embed code into a Custom HTML block.
Why did WordPress remove my embed code?
Users without unfiltered_html lose script tags on save. Ask an Administrator.
Can I add scripts on WordPress.com?
Only on a paid plan with hosting features turned on.
Does pasting an Instagram link still embed the post?
No. Use the Embed code from the post's menu on instagram.com.
Will the feed slow my WordPress site?
Measure it. Idukki's widget runtime is 79 KB gzipped, by our own measurement.
Sources
- 1WordPress.org: Custom HTML block · Adding the block, and unfiltered_html in WordPress 7.0. Read 21 November 2026.
- 2WordPress.com: Custom HTML block · Script tags need a paid plan with hosting features. Read 21 November 2026.
- 3Instagram Help: Embed an Instagram post or profile · Embed steps for posts and Reels.
- 4Idukki pricing · Free plan up to 20,000 widget impressions a month.
Continue reading
5 pieces in this clusterThese long-form pieces on the Idukki blog link back to this article, go deeper on the cluster.
- Embedding
How to embed Google reviews on WordPress
A free Maps embed or a reviews widget, pasted into a Custom HTML block. Steps, plus the rules that decide if the code survives.
- Embedding
How to embed an Instagram feed on Squarespace
An Instagram feed in a Squarespace Code Block. The plan rule for scripts, the preview catch and fixes.
- Embedding
How to embed an Instagram feed on Wix
An Instagram feed in a Wix Embed HTML element. Steps, sizing and links to your Wix products.
- Embedding
How to embed an Instagram hashtag feed on your website
Instagram has no hashtag embed. The Graph API route, its limits, and a moderated hashtag feed.
- Embedding
Instagram Embed Guide: How to Embed a Post, Reel or Feed on Your Website
Instagram embed code step by step for posts, reels and profiles. Why the Embed option goes missing. How to embed a live Instagram feed.
More from Rohin Aggarwal
- Embedding
How to embed an Instagram feed on Squarespace
An Instagram feed in a Squarespace Code Block. The plan rule for scripts, the preview catch and fixes.
- Embedding
How to embed an Instagram feed on Wix
An Instagram feed in a Wix Embed HTML element. Steps, sizing and links to your Wix products.
- Embedding
How to embed an Instagram hashtag feed on your website
Instagram has no hashtag embed. The Graph API route, its limits, and a moderated hashtag feed.