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 Automatically Tweet When You Publish a New Post in WordPress

Sharing your latest WordPress posts on Twitter (X) is a great way to drive traffic to your site. However, manually tweeting every time you publish a new post can be time-consuming and repetitive.

At WPBeginner, we’re active on several platforms: Facebook, Instagram, LinkedIn, and Twitter (X), among others. So, we understand the value of staying connected with your audience.

Without automation, you might forget to tweet or delay sharing your new content, missing out on potential engagement. Plus, it can feel like an extra task on top of your regular blogging routine.

This is where setting up automatic tweets can help. With a simple setup, you can have your WordPress posts shared on Twitter as soon as they go live, saving you time and boosting your reach.

In this article, we’ll show you how to automatically tweet when you publish a new post in WordPress.

How to auto tweet new posts in WordPress

Why Automatically Tweet New Blog Posts on Twitter?

With more than 217 million monthly active users, Twitter is a great place to engage with your audience and build a following.

In fact, according to our marketing statistics research, users spend around 2 hours and 29 minutes on social media every single day. That’s a huge opportunity to promote your blog posts.

However, it can be time-consuming to manually tweet every time you publish a new post on your WordPress blog.

By using a tool that automatically shares new posts for you, you can keep your Twitter feed active and interesting, no matter how busy you get.

With that in mind, here’s how you can automatically post tweets when there are new blog posts on your WordPress website. You can use these quick links to navigate through the steps:

Let’s get started!

Step 1: Set Up the Uncanny Automator Plugin

The easiest and most reliable way to add a Twitter autoshare feature in WordPress is by using Uncanny Automator.

Uncanny Automator website

Uncanny Automator is the best WordPress automation plugin that helps you create automated workflows without having to write code.

Think of Uncanny Automator like Zapier but for WordPress websites. It seamlessly integrates with all the must-have WordPress plugins and third-party tools. 

For this guide, we will be using the Pro version of Uncanny Automator, as it includes the X/Twitter integration. However, feel free to check out their free version to explore what the plugin is like.

To automatically tweet new WordPress posts, you need to install and activate the Uncanny Automator plugin. For more details, follow our tutorial on how to install a WordPress plugin.

Upon activation, you must first activate your Uncanny Automator Pro license key, which you will get after purchasing a Pro plan.

Simply go to Automator » Settings and insert the license key in the appropriate field.

Activating the Uncanny Automator Pro license key

After that, just click ‘Activate License.’

Next, you can click the ‘App Integrations’ tab and select ‘X/Twitter.’

You will now select one of the connection methods: ‘Quick connect’ or ‘Custom app.’

With ‘Quick connect,’ you will simply connect Automator to your Twitter app account and get a limit of 5 tweets per day to post.

The ‘Custom app’ lets you use your own developer app to connect Automator to your Twitter account. You will get a limit of 100 tweets per day. However, we only recommend this option if you have some knowledge of API.

For this tutorial, we’ll use ‘Quick connect.’ Once you’ve selected that, go ahead and click ‘Connect X/Twitter account.’

Connecting Uncanny Automator with X/Twitter

This opens a popup where you can type in the username or email address that’s linked to your Twitter account, along with your Twitter password.

After that, go ahead and click on the ‘Authorise app’ button.

How to give Uncanny Automator access to Twitter

You will be redirected back to the Uncanny Automator settings page.

Step 2: Create an Automated Workflow

Now, you are ready to create a recipe that will automatically send tweets when you publish a new blog post.

To start, simply head over to Automator » Add New. You’ll be asked to select whether you want to create a recipe for logged-in users or everyone.

You can go ahead and select ‘Logged-in users’ and then click the ‘Confirm’ button.

Select the logged in recipe type

Next, you can give the recipe a name by typing it into the ‘Title’ field. This is just for your reference, so you can use anything you want.

Uncanny Automator recipes are made up of actions and triggers. To start, you will need to choose a trigger, which is anything that kickstarts the recipe.

In the ‘Triggers’ section, select ‘WordPress.’

Select WordPress as your integration

You will now see all the different WordPress triggers.

In the dropdown, select ‘A user published a type of post with a taxonomy term in a taxonomy.’ This option allows you to send a tweet whenever someone publishes a blog post in a specific category.

Select a trigger

Next, open the ‘Post type’ dropdown and choose the content you want to share on Twitter.

For example, if you want to share all blog posts, then simply choose ‘Post.’ You can then decide if you are going to share posts from a particular category or tag by changing the ‘Taxonomy’ settings.

Choose post type to share on Twitter

When you are done, click on the ‘Save’ button.

Next, you will need to choose the action, which is the task Uncanny Automator will perform when the recipe is triggered. In our case, that’s sharing the post on Twitter.

To start, click on the ‘Add action’ button.

Adding a new action in Uncanny Automator

You will now see all of Uncanny Automator’s integrations. For example, there’s a Twilio integration that lets you send SMS notifications from WooCommerce.

Simply go ahead and select ‘X/Twitter’ as your integration.

Choosing X/Twitter for the Uncanny Automator action integration

By default, you can only select the ‘Post a tweet to X/Twitter’ action.

Once you’ve chosen that, go ahead and write a template message for your automatic tweets in the Status box.

Writing a template message for the X/Twitter status using Uncanny Automator

You can type plain text, or you can use placeholder tokens for the Status. Uncanny Automator will automatically replace placeholder tokens with unique text, such as the post’s title.

To add a token to your Twitter status, simply click on the ‘*’ and then search for the information you want to add, such as ‘Post title’ and ‘Post URL.’

Using the Asterisk button to find a placeholder token in Uncanny Automator

If you want to add the same image to every tweet, then you can simply paste that picture’s URL into the ‘Image URL’ field. For example, you may want to add your website’s custom logo to every tweet.

Another option is to show the post’s featured image. To do this, you can click on the ‘*’ button next to the ‘Image URL or Media library ID’ field and select ‘Post featured image URL.’

When you are happy with the way the recipe is set up, don’t forget to click the ‘Save’ button.

Selecting Post featured image URL in Uncanny Automator

Step 3: Publish and Preview Your Automated Workflow

At this point, you are ready to publish the recipe.

In the ‘Recipe’ box, go ahead and click the ‘Draft’ switch to show ‘Live’ instead.

Making the X or Twitter action recipe live using Uncanny Automator

That’s it!

Now, Uncanny Automator will automatically tweet every time you publish a new blog post on your WordPress website.

You can test it out by publishing a test blog post and see if Twitter actually sends a new tweet automatically.

Example of automatic tweet sent by Uncanny Automator and X or Twitter integration

For more tips and tricks on using Uncanny Automator, you can check our other complete guides:

Bonus Tip: Display a Twitter Feed on Your WordPress Website

So, you’ve learned how to tweet your new posts automatically. Now, you might be thinking about showing your Twitter feed on your website. It’s a fantastic idea to keep your visitors hooked and informed about your latest tweets.

The easiest way to do this on WordPress is with the Smash Balloon plugin. It has a lot of cool features, like being able to match the look and feel of your Twitter feed to your website’s design.

Customizing the Twitter Feed layout in Smash Balloon

Plus, Smash Balloon offers responsive feed layouts, so your Twitter feed will look great on all devices.

For more information, you can check out our Smash Balloon review.

Video Tutorial

If you prefer video tutorials, then you can dive into this step-by-step video tutorial on how to automatically tweet every time you publish a new post in WordPress:

Subscribe to WPBeginner

We hope this article has helped you send automatic tweets when you publish new posts in WordPress. You may also want to look at our guide on how to add click-to-tweet boxes in your posts and our expert picks for the best social media plugins.

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

15 CommentsLeave a Reply

  1. Jiří Vaněk

    Thanks for the tutorial. Until now, I have been manually uploading every article to the Twitter site. This saves me quite a bit of time on some sites.

    • WPBeginner Support

      Glad our guide could help :)

      Admin

  2. Rubie Maxon

    I have been following your website for a long time now… I find you ideas brilliant. Keep it up!

    • WPBeginner Support

      Thank you, glad you’ve been following our content :)

      Admin

  3. Nick

    Hi,

    I have a Wordpress events listing website and I have set up an auto poster to tweet the event.

    is there a way to send a retweet that eventorganizer or venue to let them know about the Wordpress post
    Is there a standard shortcode that is used?

    Thanks in advance

    (I have already been able to use shotcode to set up event title and URL in the auto tweet)

  4. Olaf Rowas

    Thank you very much for your post with the step-by-step manual. With the hints in your manual it was really easy to connect my blog with twitter.

  5. Sushant Kumar

    Can we get event if new posts has been published on wordpress to call some function or api.

  6. Anirban Pathak

    This is a great article . I really like this post and the simplicity of it’s implementation. Personally, I use IFTTT to query a handful of feeds from my site to update Twitter.

  7. T Nichols

    What’s the benefit of using this versus the Publicize feature in WP that also allows you to automatically share your posts on Twitter?

    • WPBeginner Support

      Publicize feature is only available to users on WordPress.com or those using JetPack plugin.

      Admin

  8. Taylor McRae

    I really like this post and the simplicity of it’s implementation. Personally, I use IFTTT to query a handful of feeds from my site to update Twitter.

  9. Karen McCamy

    While Tweeting your latest post is a common request among “bloggers” and web site owners, something many web site owners don’t think about is the impact if you have your own email newsletter (and you should be collecting email names and building your own in-house list)!

    IF you Tweet every new post, no one needs to subscribe to your newsletter!

    If you are both Tweeting and asking for NL subscribes, you could be hurting your own goals, so it would be best to carefully evaluate which option is better for you. Which route you go also depends upon your site goals and purpose, of course.

    All I’m saying is to carefully evaluate IF Tweeting every post is the best process for YOU!

    • WPBeginner Support

      Karen we do agree that may be not every post needs to be tweeted. However, we do not agree with the assumption that tweeting the same posts which you are going to include in your newsletter is in any way less effective. Twitter streams give your tweet a very limited exposure time. As soon as a user’s timeline gets new tweets from other people they follow, your tweet will most likely get buried, reducing your chances of getting noticed or clicked. On the other hand, repetition of your brand name, post title, and your updates, help you build brand recognition, trust, and authority. For more exposure we recommend building an email list.

      Admin

  10. Vinh

    A Good tut! thanks you so much!

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.