Description:
Creates a fully configurable widget that outputs the short URL to the current post or page. Requires the YOURLS: WordPress to Twitter plugin.
A demo can be found to the right (the text can be customized).
Download:
- Download from WordPress.org (2,516 downloads)
[...] YOURLS: Short URL Widget [...]
Alex,
Killer simple, and will be very effective.
Awesome.
[...] YOURLS: Short URL Widget [...]
[...] große Version angezeigt wird. Die zweite Sache war das Plugin für meine Yourls-Installation samt Widget zur Anzeige des Links unter jedem Artikel. Für den Statistikfreak in mir habe ich ausserdem noch [...]
Can you add the option to show the permalink of the page with [permalink]?
Why would you want the full URL? The purpose of the widget is to show a short URL for the current post.
Take a look at: http://kernell.me/2010/04/marble-phoview/
Check the boxes under the post itself.
Seems silly when the URL is right there in your address bar.
Merely a request, thanks for your time I will try to implement it myself.
Hi,
thanks for your great Plugin!
How can i add [title] to the source-code ? So i can implement the title of the actual page with [title] like [url] ?
v1.1.0 adds
[title]and[longurl]per Grabi and Brandon’s requests.very big thanks!
Thank you very much.
[...] Entwickler vom Plugin Yourls Short Url Widget für WordPress hat (für mich) eine sehr wichtige Erweiterung hinzugefügt. Hier im Blog wird das [...]
I really like this plug-in, but the continuous message “Please configure YOURLS – WordPress to Twitter settings now” is a little annoying if someone isn’t wanting to use the Twitter feature of it. I just upgraded to the newest version and that suddenly appeared/persists. I know how to disable it, but i figured I’d mention it to ya and suggest making it an optional feature instead of a required one.
Thanks again man!
I didn’t write YOURLS or it’s WordPress plugin — Ozh did. I only wrote this widget that displays the short URL.
You’ll want to comment here instead: http://planetozh.com/blog/yourls-wordpress-to-twitter-a-short-url-plugin/
hi alex,
I am having a problem with wordpress URLs…. In category page urls “category” keyword is coming…. There are some plugins to remove that keyword but after using those plugins my child category pages are redirecting to 404 error page….. If u know any remedy for this please let me know….
[...] Yourls: Short URL Widget [...]
great , thanx
Is there a simple way to get this to work on a non wordpress website?
I want people to be able to publicly use my shortner but can’t see a way of doing it other than by using the wordpress plugin?
My plugin is for WordPress, period.
YOURLS has a public option though, but I don’t provide support for YOURLS — it’s not my code.
Great plugin, well done Alex.
I’m wondering how easy it would be to call a function in your code to display the short url within single.php i.e. within the main content body rather than as a sidebar widget?
Any advice appreciated!
thanks
wp_ozh_yourls_geturl( $post->ID )will return the short URL.Thanks Alex, that function didn’t work for me, but a variation of it works perfectly:
I changed the database that I use for YOURls, but now this widget seems to have cached the old database URLs somewhere (as they are not in the YOURls admin list) and I can not find them.
Any ideas ?
They’re cached in the post meta by the YOURLS WordPress plugin (not my plugin).
Thanks Alex, much appreciated. I’ve been looking everywhere. Great Plugin btw
[...] urls with my own domain name like the YoURLs plugin for wordpress . You can read about this here YOURLS: Short URL WordPress Plugin Basically you install YoURLs in a sub folder on your domain and use it to output a shortened url [...]
[...] I’m trying to set up short urls with my own domain name like the YoURLs plugin for wordpress . You can read about this here YOURLS: Short URL WordPress Plugin [...]
Great Plugin.. I got here via link from Pligg to (http://www.viper007bond.com/wordpress-plugins/yourls-shorturl-widget/) From (http://forums.pligg.com/questions-comments/23175-yourls-short-urls-your-domain.html) Seems Pliggs got it all figured out. They dont want to talk about YoURLs at all!
Great plugin, thanks…
Hi. Is there any way to make the short link a live url? Thanks..
Sure. Use this:
Thanks for this great plugin! Is there anyway to integrate the short-url into the ‘Tweet’ button? Example, when a user clicks the button, the short-url is populated in the text area, instead of the page’s long url.
This is more a YOURLS question than a question relating to my plugin, but yes. The tweet button itself is configurable, although it will depend on how you’re adding the button to your site. If it’s just in your theme, then it’s easy. Just use http://codex.wordpress.org/Function_Reference/wp_get_shortlink
Does this plugin also work with bbPress 2.0 forum topics (since bbPress moved from a standalone piece to a plugin for WordPress since version 2.0)? I’d ask about Yourls to Twitter, but that’s not your plugin as you’ve said, so I figure that, if this works with bbPress 2.0, so will Ozh’s plugin, since that plugin is a prerequisite to using yours.
My plugin merely exposes the short URLs that Ozh’s plugin fetches, assigns, and stores. In short, you’ll want to talk to Ozh to confirm that his plugin is having short URLs generated for forum topics.
My plugin may also need massaging though as it will only display the widget if
is_singular()returns true (i.e. you’re viewing a single post or page) which I doubt it does for forum threads, but I’m not familiar enough with bbPress to be sure.In short, you’ll need to fiddle with stuff.
Cheers Alex, but there’s actually no need to fiddle with anything.
I had a look through the Options panel of Ozh’s plugin and, lo and behold, found options to create short URLs for forums, topics and replies, as well as media and posts. Yet another lesson in searching before asking for the answer :$
Also, using Keith’s code (for some reason, the code you gave didn’t do anything), I’ve been able to call URLs for each topic and forum from in my template as normal. Since bbPress 2.0 sits in your standard WordPress template and uses the standard WordPress theme files, I assume that the widget will work. Since my theme is completely static, I can’t guarantee that, but I’d be willing to bet money they will stay, even when browsing the forums.
This is going to make my custom share links absolutely fantastic. Thanks!!!
Hi Alex,
Your widget displays an automatic generated short url. And then sometime I change the short url to another url. But your widget seems display the old short url.
My plugin pulls the data from the YOURLS plugin which in turn pulls the data from a custom field where the short URL has been cached.