This will show you how to add Twitter to WordPress using the oEmbed system for specific tweets and the HTML widget code process for adding your Twitter stream to a page.
No plugins required.
How to add Twitter to WordPress
First we’ll cover how you can embed individual tweets into a WordPress page. This works for both self-hosted and free WordPress sites.
This makes it easy to embed a tweet into your content by pasting its URL on a separate line. Other services also use this simple copy and paste method. You can find them here.
1. Find the tweet you want to embed into your page.
Click the time stamp link.
2. Copy the URL from the address bar in your browser.
3. Paste that URL into your page on a separate line.
4. Preview the tweet on the public side of your site.
Embedded Tweet Example
— WP Tribe (@tribewp) April 23, 2013
You can also control certain elements of the display of the tweet using some of the methods described here.
Now we’ll cover how to embed your Twitter stream into a self-hosted WordPress site. WordPress.com users can instead use the built-in Twitter widget in their sidebar or footer area.
Embedding Your Twitter Stream
1. Visit the Twitter widgets page here.
2. Configure the widget to your preferences.
You can choose between User timeline, Favorites, List and Search. For this tutorial we’re going to use Timeline.
3. Click the Create widget and copy the code it gives you.
4. Paste the code into your WordPress page using the Text mode.
Switch back to Visual mode and save the draft or update the page.
5. Preview the Twitter widget on your website.
Timeline Widget Example
NOTE: This code can also be pasted into a sidebar widget but you’ll want to adjust the width first.
Questions? Let us know in the comments.