Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Embed Actual Tweets in WordPress Blog Posts

One of the trends we’ve seen in the online publishing industry is compiling funny tweets in one article. Many websites also now display tweets on their pages, which is great for adding social proof, increasing engagement, and providing real-time content.

We’ve handled this type of task before and found several effective ways to do it. In this article, we’re here to share how you can embed actual tweets in your blog posts.

Whether you’re curating trending topics, showcasing user-generated content, or adding credibility to your posts with expert opinions, embedding tweets can significantly improve your web content.

How to embed actual tweets in WordPress blog posts

Why Embed Actual Tweets in WordPress Blog Posts?

According to our social media statistics research, Twitter is one of the biggest social media networks in the world with over 619 million users.

Today, many websites use tweets to make their blogs more engaging.

A Buzzfeed blog post that features the latest tweets

While you could take a screenshot for your blog posts, it’s better to embed the actual tweet that you want to talk about. This allows readers to interact with the tweet by commenting, liking, and retweeting the original post.

Since they’re interactive, embedded tweets can keep visitors on your website for longer, increase your pageviews, and encourage users to engage with your content and follow you on social media.

You can even embed tweets from a trusted third party such as an affiliate marketing partner, an industry influencer, or a client who has tweeted something positive about your business.

With that being said, let’s see how you can embed actual tweets in WordPress. Simply use the quick links below to jump straight to the method you want to use:

Video Tutorial

Subscribe to WPBeginner

If you’d prefer written instructions, keep reading.

Method 1. Embed Tweets in WordPress Without a Plugin (Quick and Easy)

You can manually embed individual tweets in your WordPress blog posts using the Twitter block and WordPress block editor.

Since this method uses the built-in WordPress tools, you don’t need to install any special plugins and can start embedding tweets straight away. If you only want to add a small number of tweets to your site, then this is a quick and easy method.

However, if you want to show lots of tweets, then you will need to manually copy multiple URLs which can take a lot of time. You can also only show one tweet per block, so this isn’t a good choice if you want to embed multiple tweets.

If you do want to add a social media feed that updates automatically as new tweets get posted, then you’ll need to use method 2 instead.

To embed a single tweet, head over to X/Twitter and find the post that you want to show. This can be your own tweet or a tweet from someone else’s account. For example, you might embed posts from happy customers, as they’re a powerful form of social proof.

WPBeginner's Twitter page

Now, simply click on the tweet to open it. Your browser’s address bar will show the address for that specific tweet.

You can either make a note of the URL or leave the tweet open in a separate tab, as you’ll need the link later.

How to embed a tweet in WordPress using a URL

Switch back to the WordPress dashboard and open the blog post where you want to embed the tweet. Then, click on the ‘+’ icon and type in ‘Twitter.’

When the right block appears, click to add it to the blog post.

The Twitter embed WordPress block

Then, simply paste the tweet’s URL into the ‘Twitter’ block.

With that done, click on ‘Embed.’

Adding a tweet to a WordPress blog post using a link

The WordPress block editor will now show the tweet. After that, you can continue working on the blog by adding images, text, and other content.

When you’re happy with the blog, either click on ‘Publish’ or ‘Update’ to make the changes live. Now, if you visit the post you’ll see the tweet embedded in your blog.

A tweet, embedded in a WordPress blog post

Pro Tip: You can also paste the tweet’s URL into a Paragraph block, and WordPress will automatically turn the Paragraph block into a Twitter embed block.

You can also add the Twitter block to any widget-ready area, such as the sidebar or similar section.

This is a great choice if you want to show the same tweet in multiple areas.

Embedding an actual tweet in a WordPress sidebar

For step-by-step instructions, see our guide on how to add and use widgets in WordPress.

If you are using a block-based theme, then you can add the Twitter block to any part of your website using the full-site editor.

This includes areas of your site that you can’t edit using the standard content editor. For example, you might use your most popular tweets to improve the 404 page template.

Adding an actual tweet to a 404 template using the full-site editor

If you need to embed more than one tweet, then we recommend using a plugin to create an X/Twitter feed.

This gives you the flexibility to create custom feeds showing different hashtags, accounts, and timelines. You can then add these feeds to your blog posts, pages, or even widget-ready areas like the sidebar.

The easiest way to create an X/Twitter feed is by using the Smash Balloon Custom Twitter Feeds plugin. It’s one of the best Twitter plugins for WordPress and lets you add all kinds of feeds to your blog.

A Twitter feed, embedded using a free WordPress plugin

These feeds will update automatically, so visitors will always see your latest tweets without you having to edit the site manually.

Since the feed updates automatically, this can keep your website fresh and interesting even for regular visitors. In this way, you can encourage people to spend more time on your site, subscribe to your email newsletter, purchase a product, and take other positive actions.

If visitors spend lots of time looking through the embedded Twitter feed, then it sends positive signals to the search engines. This can improve your WordPress SEO.

First, you’ll need to install and activate the Smash Balloon Custom Twitter Feeds plugin. If you need help, then please see our guide on how to install a WordPress plugin.

How to Create a Custom Twitter Feed in WordPress

To create an X/Twitter feed, go to Twitter Feeds » All Feeds and click on ‘Add New.’

How to create a Twitter feed for your WordPress website

On this screen, you can choose what type of feed you want to embed. You can create a feed from any X/Twitter account, including third-party accounts.

This is perfect if you’re writing a blog post about another company, brand, or person, and want to show their latest tweets as part of your post.

To show tweets from a third-party account, select ‘User Timeline’ and then click on ‘Next.’

How to add actual tweets to a WordPress website or blog

On the next screen, type in the @ symbol followed by the X/Twitter account where you’ll get the tweets from.

After that, click on ‘Next’ to open the main Smash Balloon editor.

Another option is showing tweets that have a specific hashtag. This might be a hashtag that’s related to your website, the products you sell on your online store, or anything else.

You can also use hashtag feeds to show tweets related to the blog’s topic. For example, if you’re blogging about the latest hit TV show then you might create a hashtag feed showing fans talking about the show.

To create a hashtag feed, select ‘Hashtag’ and then click on ‘Next.’ You can now type in the hashtag that you want to use.

Embedding actual tweets in a hashtag feed

After that, click on ‘Next’ to open the main Smash Balloon editor.

The final option is ‘Home Timeline,’ which simply embeds your account’s X/Twitter home feed. This is exactly the same feed you see when you go to your X/Twitter homepage, so you’ll see the same tweets, likes, and retweets.

This can be useful if you want to promote the people you follow.

How to add a Twitter home timeline feed to WordPress

How to Customize Your Live X/Twitter Feed

The Custom Twitter Feeds plugin gives you lots of ways to fine-tune how the tweets look on your website. To the right, you’ll see a preview of the Twitter feed.

On the left-hand side, you’ll see all the different settings you can use to customize how these tweets look on your WordPress website. Most of these settings are self-explanatory, but we’ll quickly cover some of the major areas.

Customizing the Twitter feed using Smash Balloon

To start, click on ‘Feed Layout.’

Here, you can change the feed height and how many tweets visitors will initially see.

Changing the layout of a Twitter feed using Smash Balloon

When you’re happy with the changes, click on the ‘Customize’ link.

This will take you back to the main Smash Balloon settings screen.

Returning to the main Smash Balloon settings screen

The next setting is ‘Color Scheme.’ By default, the feed uses the colors inherited from your WordPress theme, but you can switch to a ‘Light’ or ‘Dark’ color scheme instead.

Another option is to create your own color scheme by selecting ‘Custom’ and then using the controls to change the background color, change the text color in WordPress, and more.

Styling embedded tweets on a WordPress blog post

If you’re showing tweets from a specific user, then you might want to add a header to the feed. This shows visitors exactly where the content comes from.

Custom Twitter Feeds can add a standard or text header to your feed.

Simply select ‘Header’ from the left-hand menu and then click on the ‘Enable’ toggle. By default, the plugin adds a ‘Standard’ header, which shows the ‘Follow’ button and an X/Twitter bio, if available.

Adding a header to the Smash Balloon Twitter feed

If you want to hide the X/Twitter bio, then click to disable the ‘Show Bio’ toggle.

Another option is to select ‘Text,’ which adds a ‘We are on Twitter’ header to the feed.

Adding a text header to the Twitter feed

You can replace this with your own messaging by typing into the ‘Text’ box.

When you’re happy with the messaging, you can change the header’s size and color.

Adding a text header to a social media feed using Smash Balloon

Next, you can customize how the individual tweets look inside the X/Twitter feed, by selecting ‘Tweets’ from the left-hand menu.

After that, you can choose between ‘Tweet Style’ and ‘Edit Individual Elements.’

Editing individual tweets inside a Twitter feed

If you select ‘Tweet Style,’ then you can choose between boxed and regular layouts.

If you select ‘Boxed’ then you can create a colored background for each tweet. You can also make the border radius larger to create curved corners, and add a box shadow.

Styling individual tweets in a social media feed

If you choose ‘Regular’ then you can change the thickness and color of the line that separates your different social media posts.

Next, you can customize the individual elements within each post by clicking on ‘Tweets,’ which takes you back to the previous screen.

Returning to the previous Smash Balloon screen

This time, select ‘Edit Individual Elements.’

You’ll now see all the different content that Custom Twitter Feeds includes in each post, such as the author, tweet text, and more.

To remove a piece of content from the feed, just click to uncheck its box.

Hiding content from tweets

You can also customize how each type of content looks by clicking on it.

For example, in the following image, we’ve changed the size and color of the tweet text.

How to embed actual tweets in a WordPress blog post

When you’re happy with how the tweets look, click on ‘Customize’ to return to the main Smash Balloon settings screen. This time, select the ‘Load More Button.’

The ‘Load More’ button allows visitors to scroll through more tweets, so Custom Twitter Feeds adds it by default.

Customizing the Twitter 'Load More' button

Since it’s such an important button, you may want to customize it by changing its background color, hover state, label, and more to match your site’s design.

You can also replace the default ‘Load More’ text with your own call to action by typing into the ‘Text’ field.

Adding a custom 'Load More' button to a WordPress website or blog

If you prefer, then you can remove the button completely, by clicking the ‘Enable’ toggle.

When you’re happy with how the X/Twitter feed looks, don’t forget to click on ‘Save.’ After that, you’re ready to embed the Twitter feed in your WordPress blog posts.

How to Embed a Twitter Feed in WordPress Blog Posts

You can add the feed to your blog posts using Smash Balloon’s Twitter Feed block.

If you’ve created more than one X/Twitter feed using the plugin, then you’ll need to know the feed’s code.

To get this information, go to Twitter Feeds » All Feeds and copy the code in the ‘Shortcode’ column. You’ll need to add this code to your blog post so make a note of it.

In the following image, we’ll need to use [custom-twitter-feeds feed=2]

The Smash Balloon Twitter shortcode

After that, simply open the blog post where you want to embed the X/Twitter feed. Then, click on the ‘+’ icon to add a new block and start typing ‘Twitter Feed.’

When the right block appears, click to add it to the blog post.

Embedding actual tweets in a WordPress blog using the Twitter block

The block will show one of your Custom Twitter Feeds by default. If you want to use a different tweet feed instead, then find ‘Shortcode Settings’ in the right-hand menu.

Here, simply add the shortcode and then click on ‘Apply Changes.’

Embedding a Twitter feed in a WordPress blog using shortcode

The block will now show your X/Twitter feed, and can simply publish or update the blog post to make the tweets live on your website. Any time you tweet something, Smash Balloon will update this feed automatically.

Method 3. Embed Tweets in WordPress Using Twitter Publish (Customizable)

This next method uses the Twitter Publish feature to embed a tweet in WordPress. The difference between this method and the previous ones is that it doesn’t use a plugin, but it allows you to customize how the embedded tweet looks on your blog post.

First things first, make sure to copy the tweet URL like in the first method. Then, go to the X/Twitter Publish site and paste the URL in the appropriate field.

After that, just click the arrow sign on the right.

Pasting a single tweet URL on Twitter Publish

Next, choose a display option.

Since you want to embed a tweet, go ahead and pick the ‘Embedded Post’ option.

Choosing Embedded Post in Twitter Publish

Below, you will find an option to copy some code and paste it into the block editor.

But for the purpose of this tutorial, you have to click the ‘set customization options’ link first. This is what allows you to customize what the embedded tweet looks like before adding it to your WordPress blog post.

Clicking set customization options on Twitter Publish

Here, you have the option to enable dark mode for your tweets, change the language of the tweet, and hide the tweet’s thread discussion.

You can also enable the ‘Opt-out of tailoring Twitter’ option to prevent X/Twitter from collecting your visitors’ information, such as the web page they visited, their IP address, browser type, operating system, and cookie information.

Once you’re done, just click the ‘Update’ button.

Customizing an embedded tweet made with Twitter Publish

At this stage, you will go back to the previous page, and X/Twitter will update the embed code according to your customizations.

Here, just click the ‘Copy Code’ button.

Clicking Copy Code in Twitter Publish

Now, just open the block editor for the post you want to embed the tweet in.

Then, click the ‘+’ icon anywhere on the page and choose the ‘Custom HTML’ block.

Choosing Custom HTML block in WordPress block editor

In the HTML field, simply paste the code you copied earlier.

Here’s what it should look like:

Pasting a Twitter Publish code in the Custom HTML block

If you want to see what the embedded tweet looks like, just click the ‘Preview’ button on the block toolbar.

Then, feel free to add more elements to your page and hit the ‘Publish’ or ‘Update button’ when finished.

Clicking the Preview button in the WordPress Custom HTML block

That’s it!

For more tips and tricks on integrating X/Twitter with your WordPress website, check out these articles:

We hope this article helped you learn how to embed actual Tweets in WordPress blog posts. You may also want to see our guide on how to automatically share old WordPress posts on social media and our expert pick of the best WordPress Facebook plugins to grow your blog.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

18 CommentsLeave a Reply

  1. Dennis Muthomi

    As someone who just started a WordPress blog focused on social media marketing, I found this guide super valuable!

    I’d been using the manual method of embedding individual tweets(or should I say posts) with the Twitter block, but the Smash Balloon plugin method sounds much more efficient for curating topical Twitter feeds around hashtags or influential accounts in my niche.

    I’ll definitely be implementing some of these tips on my own blog. Thanks for the actionable advice!

    • WPBeginner Support

      You’re welcome, glad our guide was helpful!

      Admin

  2. Paul Roos

    Thanks for the article. I am going to try it. If the tweet has a hashtag, how does one embed always the newest Tweet with Hashtag?

    • WPBeginner Support

      For that you would want to use the plugin option and that would automatically update as the hashtag got new posts :)

      Admin

  3. Daniel Westerdale

    Hi

    I embedded a tweet which had an attached image, in a page on my wordpress blog. I noticed the tweet text is rendered but the image is not displayed. Hence, I just wondered if this is possible ( even with another plugin) .

  4. Marce Luna

    Thanks, a didn’t know that! There’s a way to get the tweet URL much faster. Just look for the date right in the timeline, right click and copy link address.

  5. Mustafa Cıngı

    You know what? I’ve really searched for months about this topic and I couldn’t find the solution and it was getting me insane day by day, until today. Thanks for your solution. From now on, I can share tweets in my blog. Thanks..

  6. LJames

    Hello,
    How are you doing? i have been embedding twitter post links in the post entry an they have been displaying very well, but just of recently my twitter posts just stopped displaying in the posts i dont know why, for example when i try to inset a twitter link like this one: it displays very well in the post entry before i publish the post, but after publishing post and check, it doesnot show, it only shows the link like the one above, it doesnot display the real twitter post with its picture

    please help me find the issue, i also tried to deactivate the plugins but all invain.

    This is my website:

    Thanks

    L.James

    • WPBeginner Support

      Seems like a plugin or you WordPress theme is causing the issue. Try deactivating all plugins and switching to a default theme to figure out whats causing it.

      Admin

  7. pawan negi

    thnx a lot finally i found what i am searching.. worked for me.

  8. Kristina

    For me, embedding tweets works on the first tweet but not multiple tweets in successive order. Anyone know any workarounds for this?

    • Debi Hodges

      I am having this exact issue, any thoughts?

  9. Edikan

    Please, I will like to ask a question about twitter but outside this particular topic.

    Twitter have an automatic link shortening service using t.co. but it is not working in my Twitter’s profile page. but it works on my facebook page when shared from my Wordpress website, since my twitter is connected to my facebook.

    I have tried rectifying this problem but cannot and it seems twitter doesn’t have a help center where i can contact them to tell them this.

    Please how can i solve this.
    Thanks.

  10. Trish Ledingham

    Mine worked when I did it in my previous blog but now when I go to do it again in another blog, it only brings up the text and not the actual tweet. Any suggestions please?

  11. joshie

    Thought it didn’t work at first. You actually have to go to Preview mode to see it, it won’t appear in the editor.

  12. William T Quick

    Doesn’t work. Shows the url code, not the tweet.

    • Paul McGuire

      Seems to work fine to me. I am not sure what old version of Wordpress you are using. Though admittedly now when you click “embed tweet” you don’t get the same sort of URL that he describes in the article. But once you grab that out of the jumble of code and paste that into your post then you get a properly embedded tweet.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.