[wp-trac] [WordPress Trac] #64941: TikTok carousel embeds do not work
WordPress Trac
noreply at wordpress.org
Tue Mar 24 14:56:58 UTC 2026
#64941: TikTok carousel embeds do not work
--------------------------+-----------------------------
Reporter: Nick_theGeek | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
TikTok has image-based carousel embeds now. The URL looks like
https://www.tiktok.com/@itsklarissat/photo/7614533377500138782
When trying to embed this URL it will throw an error
[[Image(https://i.imgur.com/pKKc1Mu.png)]]
If you replace "photo" with "video" in the URL like:
https://www.tiktok.com/@itsklarissat/video/7614533377500138782
It will embed correctly
[[Image(https://i.imgur.com/vBdnnXg.png)]]
It looks like the oembed regex is:
{{{
'#https?://(www\.)?tiktok\.com/.*/video/.*#i' => array(
'https://www.tiktok.com/oembed', true ),
}}}
A second regex to match the photo URL could be added or it could be
updated like
{{{
'#https?://(www\.)?tiktok\.com/.*/(?:video|photo)/.*#i' => array(
'https://www.tiktok.com/oembed', true ),
}}}
An alternate solution might be a more generic match, which could account
for other URL formats they may add in the future.
{{{
'#https?://(www\.)?tiktok\.com/.*/[^/]+/.*#i' => array(
'https://www.tiktok.com/oembed', true ),
}}}
I tested this with WordPress 6.9.4 on Twenty TwentyFive and no plugins.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64941>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list