How to use the Custom HTML block to embed social media posts
Include specific social content from Instagram, Facebook, Threads, and X by using the into a Custom HTML block.
⚠️ Meta (which includes Facebook, Instagram, and Threads) no longer supports WordPress’s automatic embed feature or offers native embed blocks. You’ll need to use a Custom HTML block and generate the embed code manually.
Step 1: Get the embed code from the social media platform
Instagram, Facebook, or Threads
-
Go to the post in a browser (not in the app).
-
Click the three dots (•••) on the top right of the post.
-
Select Embed.
-
Copy the full code provided (it usually starts with
<blockquote>and includes a<script>tag).
Note: You may need to be logged in to a Meta account to access this feature. Threads uses the same embed tool as Instagram and Facebook.
X (formerly Twitter)
-
Click the share icon on a tweet.
-
Select Embed Post.
-
Copy the code provided.
Step 2: Add a Custom HTML block in WordPress
-
In the WordPress editor, click the + icon to add a new block.
-
Search for and select Custom HTML.
-
Paste your copied embed code into the block.
Step 3: Preview and publish
-
Click Preview in the block to check how the post will look.
-
If it looks good, publish or update your post.
Make sure to include the script portion of the embed code—some platforms require this to properly display the post.