How to Embed a Twitter (X) Feed on Your Website (2026 Guide)
Four ways to put X posts on a website, compared in one table. X's embed code, X's timeline tool, a free widget and a moderated wall, with steps.
Your launch hashtag is trending on X and the event screen is ready. Then someone posts something you would never put on a wall. The method you pick decides whether that post reaches the screen.
You want X posts on your website. There are four ways to do it, and they suit different jobs. One post in a blog article needs X's own embed code. A wall of hashtag posts at an event needs a tool that filters what shows. This guide compares all four, then gives the steps for each.
In this article
The four ways, compared
| Method | What you get | Cost | Good for | Watch out for |
|---|---|---|---|---|
| X embed code for one post | One post, drawn by X's script | Free | Quoting a post in an article | Shows as a plain link if X's script fails |
| X timeline from the publish tool | A scrolling feed of one public profile | Free | A news or team page | One profile only, with no hashtag or search feeds |
| Free third-party widget (Juicer) | A styled feed from one source | Free plan; paid from $15 a month | Small sites testing a feed | X is a 7-day trial on the free plan. Juicer branding shows |
| Moderated wall (Idukki, ours) | X posts with Instagram, TikTok and YouTube, filtered, can be shoppable | Free up to 20,000 impressions a month | Stores, campaign pages, event screens | More setup than one post needs |
We make Idukki, so read the last row with that in mind. We rank nothing here. Each row fits a different job.
Pick the method by the job
Start here
How many X posts do you need to show?
- One post
X embed code
Paste the post URL into the publish tool. Free, no account needed.
- One profile
X timeline
The same tool makes a scrolling feed of one public profile.
- Hashtags or several networks
A widget tool or a wall
X's own tools cannot show hashtags.
- Small site, one source: A free widget plan, such as Juicer's.
- Anyone can post to the tag: A moderated wall that filters before it publishes.
Method 1: embed one post
- 1Open the post on X and copy its URL.
- 2Go to publish.twitter.com and paste the URL.
- 3Pick the embedded post option and copy the code it gives you.
- 4Paste the code into an HTML block on your page and publish.
No developer account is needed. The code loads X's widgets.js script, which draws the post. When that script is slow or blocked, the reader sees a plain quote with a link.
Method 2: embed a profile timeline
- 1Copy the profile URL, for example x.com/yourbrand.
- 2Paste it into publish.twitter.com and choose the embedded timeline option.
- 3Set the theme and height, then copy the code.
- 4Paste the code where the feed should appear.
A timeline shows that profile's own posts only. It cannot show a hashtag, mentions or search results. Styling stops at a light or dark theme and a height. In 2023 embedded timelines stopped rendering for logged-out visitors for a while. Treat a timeline as decoration you can afford to lose.
Method 3: a free widget tool
Widget tools pull posts on their own servers and render a styled feed. Juicer's free plan gives one feed with one source and refreshes once a day. Its X, LinkedIn and hashtag sources are a 7-day trial on that plan. Paid plans start at $15 a month for three sources. The free feed carries Juicer branding.
- 1Sign up and create a feed.
- 2Add your X handle as a source.
- 3Pick a layout and copy the embed code.
- 4Paste the code into your page.
Method 4: a moderated wall with Idukki
Use a wall when anyone can post to the hashtag you show. Idukki collects X posts by handle or campaign tag. It runs them through automatic moderation and publishes only what passes. You can add a human approval queue. The same wall can mix X posts with Instagram, TikTok and YouTube.
- 1Install Idukki from the Shopify App Store, or book a demo for other platforms.
- 2Add X as a source with your handle or hashtag.
- 3Set moderation rules and, if you want, turn on manual approval.
- 4Pick a layout on the X widget page and copy the embed.
- 5On Shopify, add the gallery block in the Theme Editor. Elsewhere, paste one script tag.
On a store, you can tag products to posts so the wall links to them. The free plan covers up to 20,000 widget impressions a month and shows the Idukki logo. For more networks in one feed, read the social media aggregator guide.
What about the X API?
You can build your own feed on the X API. Reading posts through it is a paid product. Rates change, so check X's developer pricing page. You also write and host the fetch, cache and render code. That only pays off if you already use the API for something else.
Page speed
X's widgets.js sits on your page's critical path. When it is slow, your page is slow. When it fails, the embed disappears. Lazy-loading it behind a click helps. A wall rendered from a server cache works the other way round. An X outage then shows slightly older posts instead of nothing. The numbers are in Core Web Vitals impact of UGC widgets.
LinkedIn has no feed widget at all. The LinkedIn feed embed guide covers the workarounds.
Questions people ask
Can I embed a hashtag feed from X for free?
Not with X's own tools, which embed posts and profile timelines only. Widget tools add hashtag sources, usually on a paid plan.
Do I need an X developer account to embed a post?
No. The publish tool makes the code without an account.
Why does my embedded post show as plain text?
X's widgets.js script did not load. Ad blockers, privacy settings or a slow network can stop it.
Sources
- 1X: publish.twitter.com embed generator · Single-post and timeline embed tool.
- 2X Developer Platform · Current API access and pricing.
- 3Juicer pricing · Free plan, X trial and $15 plan. Read 13 October 2026.
- 4Idukki pricing · Free plan up to 20,000 widget impressions a month.
- 5Idukki X widget · Layouts and setup.
Continue reading
3 pieces in this clusterThese long-form pieces on the Idukki blog link back to this article, go deeper on the cluster.
- Buyer's guides
The best social media wall tools for events in 2026: five tools compared
Walls.io, Taggbox, Curator, Juicer and Idukki for event screens. Event passes against subscriptions, sources, moderation and what you keep after the event. We make Idukki.
- Embedding
How to Embed a Tweet on a Website (And What Replaced Moments)
The X/Twitter embed code and the no-JavaScript alternative. Why Moments embeds are gone, and how to show curated tweets without a tracking script.
- Buyer's guides
Social Media Aggregator Tools: What to Buy in 2026
Social media aggregators now split into four jobs: brand monitoring, community display, review aggregation, and shoppable UGC commerce. Pick the job before the demo.
More from Rohin Aggarwal
- Embedding
How to Embed a Tweet on a Website (And What Replaced Moments)
The X/Twitter embed code and the no-JavaScript alternative. Why Moments embeds are gone, and how to show curated tweets without a tracking script.
- Embedding
How to Embed a Facebook Feed on Your Website (2026 Guide)
The official Page Plugin, the App Review process behind the Graph API, and when a moderated Facebook wall is the better answer for shoppable, multi-platform UGC.
- Embedding
How to Embed a Threads Feed on Your Website (2026 Guide)
Threads is the newest major platform to embed from: single-post embeds exist, a full profile widget still doesn't, and here's what that means for brands using it today.