Skip to content
NewProduct Q&A: shoppers ask on your product page and get your answers.See how it works
IdukkiIdukki
Embedding

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.

  1. 1Open the page or post in the block editor.
  2. 2Click the Block Inserter, or type /html in a new paragraph and press Enter.
  3. 3Click Edit HTML on the Custom HTML block.
  4. 4Paste your code. A preview shows beside it.
  5. 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

  1. 01

    New collection

    In Collections, click New collection and pick Instagram.

  2. 02

    Add sources

    Your username, Reels, a hashtag or posts that tag you.

  3. 03

    Pick a layout

    Grid, carousel, masonry or a video layout.

  4. 04

    Copy code

    Open Publish and copy the embed code.

  5. 05

    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 and the WooCommerce page.

If the feed does not show

SymptomCheck
The block is empty after savingYour role lacks unfiltered_html, or your WordPress.com plan blocks scripts
A bare link instead of a postUse the Embed code from Instagram, not the post URL
Gallery shows in the editor, not liveClear your caching plugin, then reload
Empty gallery boxThe collection has posts, and both IDs match Publish
Illustration of the Idukki widget builder.

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

  1. 1WordPress.org: Custom HTML block · Adding the block, and unfiltered_html in WordPress 7.0. Read 21 November 2026.
  2. 2WordPress.com: Custom HTML block · Script tags need a paid plan with hosting features. Read 21 November 2026.
  3. 3Instagram Help: Embed an Instagram post or profile · Embed steps for posts and Reels.
  4. 4Idukki pricing · Free plan up to 20,000 widget impressions a month.
#instagram#wordpress#embed#instagram-feed#ugc

Continue reading

5 pieces in this cluster

These long-form pieces on the Idukki blog link back to this article, go deeper on the cluster.

More from Rohin Aggarwal