WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Plugins» How to Automatically Tweet When You Publish a New Post in WordPress

How to Automatically Tweet When You Publish a New Post in WordPress

Last updated on November 6th, 2014 by Editorial Staff
55 Shares
Share
Tweet
Share
Pin
Special WordPress Hosting offer for WPBeginner Readers
How to Automatically Tweet When You Publish a New Post in WordPress

Twitter is one of the best tools to let your followers know whenever you publish a new post in WordPress. If you have an active Twitter following, then you may want to automatically send tweets from your WordPress site whenever you publish a new post. In this article we will show you how to automatically send a tweet when you update or publish a new post in WordPress.

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 install and activate WP to Twitter plugin. After activating the plugin, go to Settings » WP to Twitter to configure plugin settings.

WP to Twitter settings screen

Creating a Twitter App for Your WordPress Site

To make use of Twitter API, Twitter now requires authentication using OAuth protocol. In order to use this plugin, you would need to create a Twitter App for your website. Go to Twitter Apps Registration page and sign in with your Twitter account. Next click on Create New App button to register your app. On the next page, simply enter a name for your app, a little description, your website URL and then use the same URL as callback URL for the app.

Registering your Twitter App

Twitter will now create an app for you and will take you to your app page. Now you need to give this app read-write access to your Twitter account. To do that, simply click on the Settings tab, and scroll down to Application Type section. Under Access field choose Read and Write and update your Twitter app settings.

Next you need to go back to your Twitter app’s Details page. Scroll down to the bottom of the page and click on Create My Access Token button. Twitter will now generate your access token. Below your access token keys, it will also show you access level, make sure it is Read and Write.

At this time, you have all the keys you need to authenticate your site with Twitter. Copy your consumer key, consumer secret, access token, and access token secret keys and paste them in WP to Twitter settings. Once you do that, simply click on connect to Twitter to authenticate your site.

Setting up WP to Twitter

After authenticating your site with Twitter, the next step is to configure WP to Twitter settings for your tweets. On the plugin’s settings page, scroll down to Basic Settings section.

Configuring WP to Tweet settings

The first option under basic settings is to choose a URL shortening service provider if you use one. It will also show you options for each post type. If you are using custom post types, then those post types would appear here as well. By default, it will show posts, pages, and links. You can simply click the check-boxes for post types you want to tweet.

WP to Tweet can automatically send a tweet whenever a new post is published or updated. You can set your own tweet message for outgoing tweets. Once you are done with configuration, save your settings.

Basically this is all you need to set up automatic tweets for new posts in WordPress. However, the plugin comes with some advanced options which will allow you to use WordPress tags as hashtags for your tweets. You can also exclude categories from automatic tweeting, allow individual authors to send tweets, and enable Google Analytics tracking.

Advance settings for WP to Twitter

Under the Author Settings you can check the box next to ‘Authors have individual Twitter accounts’ which will allow other authors on your site to add their Twitter handles in their profiles. Under author settings you can also choose user roles which will have permission to add their twitter information, send tweets, or over-ride default tweet settings.

Allow authors to add twitter handles in their profiles

To Tweet or Not to Tweet?

Once you have setup WP to Twitter to automatically send tweets, you can still over ride these settings for individual posts on the post edit screen. You can choose to tweet or not to tweet a post, or even replace the default template with a custom tweet for the post.

Override default auto tweet with a custom tweet

The problem with automatic sharing and tweeting is that sometimes you may want to remove a post or change it. Sometimes you may even accidentally publish a post which was not ready for publishing. If you set up auto-tweet, then it’s too late for that. The word is out there with your tweet. To avoid this, we recommend scheduling WordPress posts for social media using BufferApp which would allow you to share on all your social media accounts when you publish a new post. You can also use Floating Social Bar and share your posts after publishing.

We hope this article helped you send automatic tweets when you publish new posts in WordPress. For feedback and questions, you can leave a comment or join us on Twitter or Google+.

55 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • Revealed: Why Building an Email List is so Important Today (6 Reasons)

    Revealed: Why Building an Email List is so Important Today (6 Reasons)

  • Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • How to Properly Move Your Blog from WordPress.com to WordPress.org

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

18 Comments

Leave a Reply
  1. Rubie Maxon says:
    Jan 16, 2019 at 3:58 pm

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

    Reply
    • WPBeginner Support says:
      Jan 17, 2019 at 10:41 am

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

      Reply
  2. Nick says:
    Feb 20, 2018 at 1:11 pm

    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)

    Reply
  3. Olaf Rowas says:
    May 15, 2017 at 5:10 am

    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.

    Reply
  4. Sushant Kumar says:
    Jan 31, 2017 at 6:52 am

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

    Reply
  5. Jane says:
    Jan 6, 2017 at 7:07 pm

    These directions do not work anymore – new Twitter formats and requirements

    Reply
  6. Pam Knox says:
    Jul 1, 2016 at 3:31 pm

    This tutorial is written at too high a level for me. How do I activate the plug-in? Where am I supposed to find the Settings button? Is it Twitter Settings or WordPress settings? Where do I get my Access token? There are a lot of assumptions here about beginners’ knowledge that don’t seem to apply to me.

    Reply
  7. Julius says:
    Sep 5, 2015 at 7:41 am

    Is there any other twitter plugin that you could recommend apart from WP to Twitter? Some that could also include a picture with a new post? And for free!? Thanks

    Reply
  8. Stefano Martini says:
    Feb 25, 2015 at 5:46 am

    I try this plugin but error: 401 Unauthorized…. I have read/write permission active…

    Reply
  9. Dr. Diana Hardy says:
    May 26, 2014 at 5:05 am

    Thanks a lot for help

    Reply
  10. Henry says:
    Mar 9, 2014 at 4:24 am

    Is the ‘author has own Twitter account’ option available in the free version?

    Reply
  11. Anirban Pathak says:
    Dec 26, 2013 at 6:48 am

    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.

    Reply
  12. T Nichols says:
    Nov 25, 2013 at 4:51 pm

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

    Reply
    • WPBeginner Support says:
      Nov 26, 2013 at 3:42 am

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

      Reply
  13. Taylor McRae says:
    Nov 25, 2013 at 12:12 pm

    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.

    Reply
  14. Karen McCamy says:
    Nov 25, 2013 at 11:04 am

    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!

    Reply
    • WPBeginner Support says:
      Nov 26, 2013 at 3:57 am

      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.

      Reply
  15. Vinh says:
    Nov 25, 2013 at 8:58 am

    A Good tut! thanks you so much!

    Reply

Leave a Reply Cancel 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.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
MonsterInsights
MonsterInsights
Google Analytics made easy for WordPress. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 25 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2019 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2019)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2019)
    • SiteGround Reviews from 1032 Users & Our Experts (2019)
    • Bluehost Review from Real Users + Performance Stats (2019)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • 7 Best CRM Software for Small Businesses (Compared)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2019 – Step by Step Guide
Deals & Coupons (view all)
WPEngine
WP Engine Coupon
Get 20% OFF on all WP Engine hosting plans or 4 months free on annual payment.
Visual Composer
Visual Composer Coupon
Get 20% OFF on Visual Composer WordPress page builder plugin.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress

Copyright © 2009 - 2019 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by HostGator | WordPress CDN by MaxCDN | WordPress Security by Sucuri.