Integrate Twitter With WordPress

Twitter is one of the most important social media platforms of them all. To say the least, it helps us promote whatever we might have “in store.” I mean, there’s hardly a successful business out there with no presence on Twitter whatsoever.

Now, having an official account and posting to it regularly seems to be enough. However, there’s actually a lot more that can be done to multiply the results, and with relatively little effort on our part too.

Here’s our guide on how to integrate Twitter with your WordPress site. I go over each of the possible methods and give you a quick tutorial on how to get all of them working:

1. How to auto-tweet new blog posts

To start with, how about we integrate Twitter with WordPress and set up your site in a way so it tweets your every new post automatically?

For that, you can use the WP to Twitter plugin. Once you have it installed, create a quick Twitter app, complete the required fields, browse through each tab to set the plugin the way you want, and save the changes.

Now, whenever you create a new post, you’ll notice a Twitter box in the right sidebar. It allows you to adjust the exact tweet that will go out when you publish the post:

wp to twitter

This makes for a nice way to integrate Twitter with WordPress.

2. How to auto-tweet old blog posts and integrate Twitter with WordPress the easy way

Many people make the mistake of promoting a post only when it’s fresh, and then let it die slowly but certainly. If an article is valuable and still up to date, not letting it get lost in the archives is a recommended thing. Re-sharing your old posts can increase your traffic more than you think.

You can use one of our plugins for that. It’s called Revive Old Posts, and it was made precisely for that purpose. The plugin works on autopilot, so you don’t need to do anything with it on a daily basis. Just set it up initially and your WordPress is integrated with Twitter for years to come.

revive old posts

After installing Revive Old Post, go to Settings, add your social accounts (works not only with Twitter), choose the interval between shares, the requirements that make an article eligible for sharing, how many times you want it to be shared, and whatever else you need. You can also choose to exclude certain posts if you don’t want them to be shared.

(It’s recommended to spend a minute or two in those settings. This will guarantee the best results for you later on.)

revive old post

Save the changes, and you’re done. From now on, everything works on autopilot, and you’ve just integrated Twitter with WordPress.

3. How to embed tweets in WordPress

So what do I mean by embed?

To embed a tweet in WordPress means to take an individual tweet and post it inside one of your pages or posts. The great thing about embedding a tweet is that it acts like an actual tweet on your site – you can interact with it like you normally would on Twitter.

Here’s an example (that’s a live tweet):

What did I do to make it work like this? I just copied the tweet’s link and pasted it into WordPress directly. Here’s how:

When you find a great tweet, click on it and take its URL:

tweet embed

Then, go to any of your posts or pages, paste that URL in its raw form, and it will magically turn into a live tweet.

(By the way, you can embed anyone’s tweet wherever you want, not just yours.)

4. How to add Twitter cards

A Twitter card is basically an expanded tweet view, like the one you see when you click on View Summary when going through your Twitter feed:


A Twitter card can usually contain, apart from the regular tweet, a featured image, author details, an excerpt, even an image gallery. This depends on what sort of data was associated with the tweet.

Enabling a Twitter card for your posts will help you get more attention in the Twitter news feed, as your posts will simply take up more real estate than normal link posts.

You can use Yoast SEO to enable the Twitter cards functionality and integrate Twitter with WordPress. If you’re already using the plugin – and there’s a big chance you are – you just need to set a few options.

Go to the Social page in the plugin’s settings, and enter your Twitter username. Make sure to save the changes after you do that:

twitter username

Then go to the Twitter tab, enable “Add Twitter card meta data” and choose what kind of card you want to use:

twitter in yoast

The next thing you have to do is go to Users » My Profile in the dashboard menu and fill in the Twitter username field in the Contact Info section. From now on, each time anyone tweets your posts, they will have cards associated with them.

Another great solution for Twitter cards – an alternative method to integrate Twitter with WordPress – is JM Twitter cards. Install it, go to the Settings and choose your preferences, then save them. Every post will now come with a preview for your Twitter card right below the main content field. Like so:


5. How to add a Twitter feed widget to your site

A Twitter feed is a real-time widget box that shows all your tweets in the form of a mini-Twitter page. It also allows the users to interact with you right from that box, without having to go to Twitter.

When used right, this sort of stuff can help you increase your visitors’ engagement with your Twitter account, and potentially bring you more followers. People won’t look for your Twitter account by themselves unless you throw them a chance and a comfortable way to do so.

To use a Twitter widget, go to this link, copy-paste your account’s URL then choose Embedded Timeline.

twitter feed creation

Next, the embedded code will appear along with a preview of your widget. Copy the code and paste it anywhere on your site. (Just make sure to be in the Text editor when you do that, it won’t work in Visual.)

twitter feed creation

Here’s my widget:

6. How to add a simple “follow me” button

If you care about your Twitter presence and want your visitors to interact with you, putting a follow button on your site will help. It’s like an invitation for those who are interested in your services/business/persona.

The button is simple, subtle, and yet very useful when it comes to promoting your brand. Best of all, your visitors won’t even need to leave your website to follow you, they can do it right there by clicking the button. In short, this is the proper way to integrate Twitter with WordPress.

To add your follow button, you just need to go to the same link we used at point 5 and make a few clicks. Go and click on Twitter Buttons, choose your desired button, in this case the Follow Button, and copy-paste your account’s URL.

follow button

After pressing Preview you will get the code to your follow button and a preview of it. You only need to paste the code via the Text editor (you can place this button on any given post or page, or even in a sidebar text widget) and you are good to go.

follow button

My button:

7. How to add a “tweet this” button

Probably the most crucial button you can have on your posts when it comes to integrating Twitter with WordPress.

Quite simply, tweet buttons are those little things that allow your visitors to share your content to their Twitter profiles.

For instance, you can see something like this in our sidebar:


You can get this sort of buttons by installing a plugin called Jetpack. The installation works like with any other plugin. Once you’re through with it, just go to Jetpack » Settings » Sharing from the sidebar in the wp-admin, and activate the Sharing Buttons module:


Then, you can proceed to configure it by pressing Configure your sharing buttons. This part is very simple, just play with your preferences.


Lastly, click Save Changes at the bottom of the screen, and you’re done, you have integrated Twitter with WordPress!

8. How to login to WordPress with Twitter

Do you tend to forget your passwords often, or want to simplify your logins in general whenever possible?

The good news is that you indeed can use your Twitter profile as the main method when logging in to your WordPress site.

There’s a plugin called Nextend Social Login and Register. Once you have it installed, go to Settings » Nextend Social Login and choose Twitter.

nextend plugin

You’ll need to create a Twitter app. This should take you only a couple of seconds and you can follow these simple steps or their youtube tutorial.

nextend plugin

After creating the app, you will be provided with a Consumer Key and a Consumer Secret. Put those in two of the plugin’s config fields:

nextend plugin

At this stage, you can use Twitter to log in to your WordPress site – surely a nice way to integrate Twitter with WordPress. (Actually, it works with other social platforms too).


9. How to add inline tweet icons within posts

Whenever you write something important or share a quote that you feel needs to be remembered and heard by as many people as possible, you can use something called inline tweeting. This is done with the Inline Tweet Sharer plugin.

Once you have the plugin installed, just go to your WordPress editor, put the text you want to make “tweetable” in between these shortcodes and that’s it:

inline tweet

This is what it’s going to look like for your visitors:

sentence tweet

Okay, that’s all for now from our side! Feel free to comment and reach out to us in case you’re having any trouble integrating Twitter with your WordPress site. 

Oldest Most Voted
Inline Feedbacks
View all comments
Erez Elias
March 5, 2018 12:49 am

Thank you so much for sharing this.
I wonder if there’s a way to aggregate twitter posts with links to my site and display them on the site.

Chris Fitzgerald
March 5, 2018 6:18 pm
Reply to  Erez Elias

Hey Erez, I am not sure there is a tool like this. Most work on mentions, handles, authors etc etc. I don’t *think you can even build the Twitter widget to track links like this. Could be wrong tho.

It would be a cool tool tho, so if anyone knows one…

Adelina Tuca
March 5, 2018 5:41 pm
Reply to  Erez Elias

Hi! Could you be more specific, please? I need more details to understand what you mean.

Erez Elias
March 5, 2018 7:18 pm
Reply to  Adelina Tuca

Thanks for your reply.
I am looking for a plugin that will add a twitter comment on the site whenever someone mentions your site on twitter.
There is a plugin for this but it hasn’t been updated for 5 years and probably not working well by now.

Adelina Tuca
March 7, 2018 11:23 am
Reply to  Erez Elias

I think you could try this one

It adds your Twitter mentions but only in a widget form, just like my Twitter feed in this post (at #5). It adds a feed but only with mentions, not your own tweets (as far as I understood). I’m not sure if it helps. You can try it, though. It’s free.

Erez Elias
March 11, 2018 8:51 pm
Reply to  Adelina Tuca

I’m unable to find what I’m looking for and this probably the closest thing out there.
Thanks for your comment.

March 1, 2018 5:03 am

Thanks for the post. Unfortunately #5 user timeline has been changed to profile and there is no option to exclude replies now 🙁

Adelina Tuca
March 5, 2018 5:40 pm
Reply to  boardtc

Hey, that’s right. Thanks for letting me know so I can update the post. Yeah, that’s pretty bad.

Bilal Mustafa
October 17, 2017 9:03 am

Awesome tips. I was looking for how to add inline tweet button for my blog In addition to that, I have learned how to auto schedule my old post. I was making a big mistake of sharing old post frequently. Now, I can do that as well. Thank you for sharing these valuable information.

And for my blog I am using the Zillah theme by Themeisle. So a big thumbs up for that awesome theme. 🙂

Adelina Tuca
December 29, 2017 8:40 pm
Reply to  Bilal Mustafa

Hey, that’s awesome! I’m glad this post was useful to you. Also, my team and I are happy to hear that you’re using Zillah. Good luck! 🙂

Steven Danna
October 13, 2017 11:34 pm

This is such a helpful essay, thanks, Adelina. I have a question you
may help resolve. When I write a wordpress blog, I include a share to
my Twitter profile and write the preview there. Of course. I am used
to seeing my featured image with the tweet. Sometimes, instead of the
featured image being used, it just sucks up the link to the embedded
youtube video instead. This is unacceptable to me. Why is it
happening, and how do I ensure that my featured image is used by
Twitter? Until this is resolved, I cannot directly use the share
function. Thanks so much!

Adelina Tuca
December 29, 2017 8:43 pm
Reply to  Steven Danna

Hi Steven! This happens when you schedule blog posts for social media? Are you using Revive Old Post plugin?

Atul Gaur
August 21, 2017 7:33 am

Great Post Thanks

August 11, 2017 4:29 pm

Thank you for helping me make sense of this. You explanations are so clear!

Adelina Tuca
December 29, 2017 8:44 pm
Reply to  ParentsAware

Glad I could help. 🙂

Adelina Tuca
March 14, 2017 1:56 pm

Thank you! I’m happy I could help. 🙂

Jean Ndinsil
January 29, 2017 2:26 am

Thank you very much for sharing this great list. I spent my Saturday afternoon improving the look of my blog with these worthy tutorials. Bring more please!!!!

Adelina Tuca
March 14, 2017 2:00 pm
Reply to  Jean Ndinsil

Thank you, Jean! Happy to hear so. Yes, we will bring more for sure. 🙂

By the way, this is our new blog, which will be only about social media. So take a look when you can and maybe you can find something useful there too.

Your blog looks great indeed. Good luck with it! 🙂

Or start the conversation in our Facebook group for WordPress professionals. Find answers, share tips, and get help from other WordPress experts. Join now (it’s free)!