How to Embed a TikTok Feed on WooCommerce (Step-by-Step)
How to add TikTok video to a WooCommerce store, from WordPress's built-in TikTok embed block for single videos to a shoppable, product-tagged feed on the Single Product template, plus the video-loading and optimisation-plugin checks that keep WordPress pages fast.
In this article
WordPress makes it easy to put a TikTok on a page and surprisingly easy to put ten of them on a product page in a way that downloads far more video than anyone watches. The difference between a TikTok feed that sells and one that slows the store is mostly in how it's placed and loaded. This guide covers both routes and the WooCommerce-specific checks.
Single video or shoppable feed?
WordPress TikTok embed block
Add the TikTok embed block, paste a video's link, click Embed. Available since WordPress 5.4.
Wins at
- No plugin or account needed
- Good for a blog post or a single product story
Struggles with
- Each embed is TikTok's own player
- No product tagging or add-to-cart
- Several on one page adds up quickly on mobile
Shoppable video feed
Import videos, tag products, paste one embed code into a Custom HTML block or template.
Wins at
- Product tags and add-to-cart on the video
- One player for many videos
- Can load only the visible video
Struggles with
- Subscription cost
- Needs catalogue sync and tagging effort
If you're building your own integration, TikTok's Display API lets an app list and display a user's public videos after that user logs in with Login Kit and grants the user.info.basic and video.list scopes. It's designed around the authorising account's own content, which is why feeds of customer videos rely on permission workflows rather than the API alone.
Step by step with Idukki
Shoppable TikTok feed on WooCommerce
- 01
Connect WooCommerce
Create REST API keys under WooCommerce › Settings › Advanced › REST API (Read is enough for the catalogue), then connect the store in Idukki's WooCommerce settings.
- 02
Import products
In the Products area, run the WooCommerce import so products are available to tag.
- 03
Add TikTok and curate
Add TikTok as a source by username or hashtag, build a collection and tag the products each video shows.
- 04
Copy the embed code
Pick a reel or carousel layout and copy the embed code from the collection's publish step.
- 05
Place it
Paste into a Custom HTML block on the page, or into the Single Product template, as an Administrator. Update and test logged out.
Product pages on a block theme. WooCommerce's documentation describes the Single Product template, which every product uses unless a product has its own. Open Appearance › Editor, Templates, Single Product, add a Custom HTML block below the product summary and paste the code. To show a feed on one hero product only, create a "Single Item: Product" template for it. Classic themes don't give you the Site Editor for shop templates, so use your page builder's product template, or ask a developer to print the embed from a WooCommerce single-product hook in a child theme.
Who saves it matters. WordPress's Custom HTML documentation says content saved by users without unfiltered_html is sanitised with disallowed tags such as <script> stripped. On a single site that capability belongs to Administrators and Editors; on multisite, only Super Admins. Add the embed with the right account, and keep it in a template rather than page content other people edit.
Tagging video
Tag the products actually on screen, one to three per video. For try-ons and hauls, tagging at the moment an item appears reads better than a list at the start; where your plan includes Video Hotspot Tagging, you can pin a product to a point in the video. TikTok UGC strategy for ecommerce covers which videos are worth featuring, and shoppable video on WooCommerce and WordPress covers layouts.
Performance: the WordPress-specific checks
Video weight is the risk. The HTML preload attribute tells the browser whether to fetch video in advance (none means don't; MDN notes it's a hint). Idukki's widget sets it by layout: only the active slide and its neighbours in a carousel or reel get preload="auto", grid tiles get none, and a video opened full-screen loads fully. For a feed below the fold, add data-ugc-lazy="1" to the placeholder element in the embed code so it mounts only when close to the viewport.
WordPress adds a variable most hosted platforms don't: optimisation plugins. Features that delay, defer or combine JavaScript can hold the widget back until the visitor interacts, and video or iframe lazy-load features can rewrite elements the widget expects to manage. If the feed behaves differently logged in and logged out, exclude its script from those features and purge the cache.
- 1Record PageSpeed Insights for three product pages before installing.
- 2After install, open a product page logged out, open DevTools and run
document.querySelectorAll('video[preload="auto"]').lengthin the Console. A handful at most is healthy. - 3Filter the Network panel to Media and reload: no downloads for videos you can't see.
- 4Wrap the embed in a
divwith amin-heightso the page doesn't jump when the carousel appears (Google's good CLS threshold is 0.1 or less). - 5Re-run PageSpeed Insights and compare Largest Contentful Paint and CLS with the baseline.
Core Web Vitals and UGC widgets explains how to interpret the reports.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Feed disappeared after a page edit | Script stripped on save by a user without unfiltered_html | Re-add as an Administrator; keep the embed in a template. |
| Feed only appears after scrolling or clicking | Optimisation plugin delaying JavaScript until interaction | Exclude the feed script from delay, purge the cache. |
| Mobile score dropped after adding TikToks | Several TikTok embed blocks, each with its own player | Replace them with one feed widget that loads the visible video only. |
| Carousel squeezed or cropped | Theme content width or container CSS | Place the block in a full-width group, or adjust the template layout. |
| No products when tagging | WooCommerce catalogue not imported | Run the WooCommerce import in the Products area. |
| TikTok embed block shows only a link | Video is private or the link isn't a video URL | Use a public video's full link. |
FAQs
How do I embed a TikTok video in WordPress?
Add the TikTok embed block (in WordPress since 5.4), paste the video's link and click Embed. For a shoppable feed of many videos, use a feed tool's embed code in a Custom HTML block.
How do I add TikTok videos to WooCommerce product pages?
On a block theme, edit the Single Product template in Appearance › Editor and add a Custom HTML block with your feed's embed code. On a classic theme, use your page builder's product template or a child-theme hook.
Why did my TikTok feed vanish from a WordPress page?
Most often because someone without the unfiltered_html capability saved the page and WordPress stripped the script tag. Re-add it as an Administrator and keep it in a template.
Will TikTok videos slow down my WooCommerce store?
Several separate embeds can. A single feed that loads only the visible video, mounts lazily below the fold and reserves its height keeps the impact small. Measure before and after.
Can I show customers' TikToks on my store?
With their permission. Importing by hashtag makes a video available to curate; it doesn't license it. Request rights and keep the approval.
Sources
- 1WordPress.org Documentation: TikTok embed · Add a TikTok embed block and paste the video link
- 2WordPress.org Documentation: Embeds · TikTok block available since WordPress 5.4
- 3WordPress.org Documentation: Custom HTML block · Scripts stripped for users without unfiltered_html
- 4WooCommerce: Customizing your product pages · Single Product template; per-product templates
- 5TikTok for Developers: Display API overview · Display a user's profile and videos; required scopes
- 6MDN: the video element · preload values; preload is a hint
- 7web.dev: Cumulative Layout Shift (CLS) · Good CLS threshold of 0.1 or less
Continue reading
1 piece in this clusterThese long-form pieces on the Idukki blog link back to this article, go deeper on the cluster.
More from Rohin Aggarwal
- Strategy
UGC for Athleisure Brands: 8 Programme Tear-Downs
Size diversity, body-type representation, technical claims, return-rate reduction: what separates athleisure UGC programmes that work from ones that just spend.
- Strategy
UGC for B2B SaaS Marketing: Beyond G2 and Capterra
Video testimonials, customer-built apps, integration showcases: how B2B brands compound credibility through customer content the buying committee actually trusts.
- Strategy
UGC for Luxury Brands: Authenticity Meets Brand Equity
Curatorial UGC, member-only galleries, anti-cheapening guardrails. Why the mass-market UGC playbook does not translate to luxury, and what does.