Title: Short URL Shortcode
Last modified: August 21, 2016

---

# Short URL Shortcode

 *  Resolved [treeslikeme](https://wordpress.org/support/users/treeslikeme/)
 * (@treeslikeme)
 * [13 years ago](https://wordpress.org/support/topic/short-url-shortcode/)
 * Is there anyway to call the Short URL in a template file? I’m looking for a function
   akin to `<?php the_permalink() ?>` but for the shortened_url. Even if it’s a 
   shortcode that I can call with a function like, `<?php echo do_shortcode('[shorturl/]');?
   >` that would be extremely helpful!
 * [http://wordpress.org/extend/plugins/shorten-url/](http://wordpress.org/extend/plugins/shorten-url/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Sed Lex](https://wordpress.org/support/users/sedlex/)
 * (@sedlex)
 * [13 years ago](https://wordpress.org/support/topic/short-url-shortcode/#post-3691605)
 * Actually, and as indicated in the plugin, you just have to call `get_short_link()`
 *  Thread Starter [treeslikeme](https://wordpress.org/support/users/treeslikeme/)
 * (@treeslikeme)
 * [13 years ago](https://wordpress.org/support/topic/short-url-shortcode/#post-3691658)
 * I guess I missed that. Thank you so much for your quick response!
 *  [Sed Lex](https://wordpress.org/support/users/sedlex/)
 * (@sedlex)
 * [13 years ago](https://wordpress.org/support/topic/short-url-shortcode/#post-3691659)
 * You are welcome 🙂
 *  [Sed Lex](https://wordpress.org/support/users/sedlex/)
 * (@sedlex)
 * [13 years ago](https://wordpress.org/support/topic/short-url-shortcode/#post-3691661)
 * plesae also note that `get_short_link()` is a WP function.
 * Thus, if you deactivate the plugin, the function will still works (but returns`
   http://domain.tld/?p=45` or alike

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Short URL Shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shorten-url_ffffff.svg)
 * [Short URL](https://wordpress.org/plugins/shorten-url/)
 * [Support Threads](https://wordpress.org/support/plugin/shorten-url/)
 * [Active Topics](https://wordpress.org/support/plugin/shorten-url/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shorten-url/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shorten-url/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 4 replies
 * 2 participants
 * Last reply from: [Sed Lex](https://wordpress.org/support/users/sedlex/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/short-url-shortcode/#post-3691661)
 * Status: resolved