Blog Post

Plugin: YOURLS WordPress to Twitter

There are many services to shorten links, including one supported by WordPress, but if you have a great short name domain, best thing to do is to have your own service to shorten links. And to power it, best solution available is YOURLS and its WordPress to Twitter plugin.

YOURLS system and plugin are developed by Ozh Richard based on the idea by Lester Chan. I will not go into details about it, it is easy to set up and use, and you can find the link to get it at the end of this review. Main thing here is the other part for this system, plugin to bring the URL shortening to WordPress.

Yourls Service Settings
Yourls Service Settings

Plugin is very easy to set up. Install it as any other plugin, and open its settings panel. There are 3 different things you need to set up, and options are well documented. You first need to set the shortening service. You can use public services: bit.ly, tinyURL and is.gd. And you can use your own YOURLS installation. Once you do that, you need to set up the Twitter account. This is also well documented, and it requires setting up the Twitter Application that will be used to sent tweets through. After that, you need to set up the template for tweet message and options to generated short URL’s for different post types. You can set for each post type if the plugin should sent tweet automatically.

Tweet template support number of tags that will be replaced to generate tweet: author (name and all other user data), custom meta fields, category, tags, taxonomies and post elements. When the plugin is active for selected post types, you will get a meta box on the post editor panel where you can see the generated short URL, you can request new short URL and you can see the generated message, and send it manually to Twitter.

Over the past several months I have contributed to the plugin code with support for custom taxonomies, several bugs fixed (including AJAX powered themes like P2 auto tweet problem), made changes in generating hashtags from terms and few other things. Also, GD Custom Posts and Taxonomies Tools Pro has integration support for this plugin, and you can set for each post type different tweet message and control options for generating short URL and sending tweet message.

This plugin is a great solution for generating short URL’s regardless if you use your own installation for YOURLS shortening service, and to send messages to Twitter with control over templates and auto tweeting. I use this plugin on all my websites, I use my own shortening service and I highly recommend you try the plugin for yourself and see how easy it is to use, and how much it will save you time to get short URL’s and to send tweets.

Useful Links

Ozh Richard Home Page: planetozh.com
YOURLS Home Page: yourls.org
Plugin on WordPress.org: wordpress.org
GD Custom Posts and Taxonomies Tools Pro: dev4press.com

Please wait...

About the author

Milan Petrovic
Milan Petrovic

CEO and Lead developer of Dev4Press Web Development company, working with WordPress since 2008, first as a freelancer, later founding own development company. Author of more than 250 plugins and more than 20 themes.

Subscribe to Dev4Press Newsletter

Get the latest announcements, release digests, promotions and exclusive discounts, and general Dev4Press-related news straight into your mailbox.


This form collects your email (optionally your name) for the purpose of sending you newsletters. Check out our Privacy Policy for more information on how we store and manage your data. We will not send you any spam. Newsletters are sent 2 to 4 times every month.

Latest From The Blog

plugins relase corsecurity 1 9

coreSecurity Pro 1.9

coreSecurity Pro 1.9 brings several very important bug fixes (related to the file scanner), several new features related to antispam control, user session management, improvements to the file scanner, and more.
plugins relase dev4press updated 4 7

Dev4Press Updater 4.7

The new version of Dev4Press Updater, brings a regular set of updates to the plugin, including support for coreSecurity Pro plugin installation and updates, various fixes and tweaks, updated shared library.
plugins relase debugpress 3.9

DebugPress 3.9

It has been a while since the new DebugPress release was announced on Dev4Press, but the plugin has been getting regular updates almost every month, and today, it has reached version 3.9.

WP Rocket - Make WordPress Load Fast in a Few Clicks
Grammarly - Number 1 Writing App
0
0
0
0
0
0