...

How to Display Recent Tweets in WordPress with Twitter Widgets

254

Twitter is one of the most powerful and highly influential social networking tool on the planet. At WPBeginner, we regularly use Twitter to monitor WordPress related discussions, interact with our audience, and help other users. Recently, one of our users asked us what is the easiest way to display recent tweets in WordPress. The answer is the official recent tweets twitter widget. In this article, we will show you how to display recent tweets in WordPress with Twitter Widgets.

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

First thing you need to do is go to the Twitter Widgets page. If you are signed in with your Twitter account, then it will already show you a sample widget with your user id. You can adjust the size and look of the widget. There are a few options such as choosing either a light or dark theme, set the widget height, choose link color etc. By default, the width of the widget is automatically adjusted so you don’t need to worry about that. Once you are done with the appearance of the widget, click on “create widget” button.

Recent Tweets Widget Preview

To add this user timeline twitter widget to your WordPress, copy the widget code and go to your WordPress admin area Appearance » Widgets. Drag and drop a text widget to your sidebar and paste the Twitter widget code inside it. Save widget changes and preview your site.

Adding Twitter widget code in a WordPress sidebar widget

You should be able to see a live preview of your recent tweets widget. If everything looks good, then you are done. Congratulations, you have successfully added recent tweets in your WordPress sidebar. If you want to add it in any other area of your site such as a WordPress post or page, then simply paste the widget code in your WordPress post/page’s content area, and it will work the same.

But wait, there is more. Twitter widgets page not only allows you to create a timeline of your recent tweets, but it also allow you to show timeline for your favorite tweets, lists, and a hashtag or search keyword. If you want to do that, then the steps are fairly simple.

Go to the Twitter Widgets page. Instead of using the User Timeline tab which is selected for you by default, click on the other tab such as favorites, lists, or search. Then configure the settings by selecting your favorite list, hashtag, etc.

Choose Timeline Source

The steps from this point on are fairly straight forward because they are the same as the user timeline widget. For favorites, the settings are exactly the same as user timeline widget. For lists, you have to select the list you want to include. For Search, you need to add the hashtag that you want to display.

One of the biggest advantage that we see for using a recent tweets “user timeline” twitter widget is that it has a Follow @username button which allows for 1 click follows to your account. Furthermore, it allows your users to tweet mention you right from your site (now that’s pretty cool).

We hope that this article helped you easily display recent tweets in WordPress using the official user timeline twitter widget. If you have any questions or comments, then feel free to let us know by leaving a comment below.

Seraphinite AcceleratorOptimized by Seraphinite Accelerator
Turns on site high speed to be attractive for people and search engines.