Title: Raw URL
Last modified: August 22, 2016

---

# Raw URL

 *  Resolved [Rikk03](https://wordpress.org/support/users/rikk03/)
 * (@rikk03)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/raw-url/)
 * Hello Andrew,
 * Whilst im here posting a bug I thought I would ask this also ……
 * Is there a way to output the raw short url like in Oz’s old plugin (template 
   tag)?
 * wp_ozh_yourls_raw_url(true);
 * Similar to how wp_get_shortlink works?
 * IT would be great for adding to social share buttons. I have successfully got
   my “simple social share plugin” to use the wp_get_shorturl, very simple one line
   code change that would work with yourls if you can do it.
 * Regards,
 * R:
 * [https://wordpress.org/plugins/yourls-link-creator/](https://wordpress.org/plugins/yourls-link-creator/)

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

 *  Plugin Author [Andrew Norcross](https://wordpress.org/support/users/norcross/)
 * (@norcross)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/raw-url/#post-5759052)
 * the shortlink should already be getting that URL, but I can add a template tag
   to fetch the short one as well.
 *  Thread Starter [Rikk03](https://wordpress.org/support/users/rikk03/)
 * (@rikk03)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/raw-url/#post-5759235)
 * Great,
 * I did try the do_action yourls in the place of wp_get_shortlink – didnt work.
 * No, the “simple social share” plugin did not get the yourls shortlink but rather
   the wp shortlink for some reason.
 * Bypassing your plugin somehow.
 * Another mystery.
 *  Plugin Author [Andrew Norcross](https://wordpress.org/support/users/norcross/)
 * (@norcross)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/raw-url/#post-5759309)
 * using the `wp_get_shortlink` should return the YOURLS URL if one exists in the
   WP database. however, I am adding another tag just in case.
 *  Plugin Author [Andrew Norcross](https://wordpress.org/support/users/norcross/)
 * (@norcross)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/raw-url/#post-5759310)
 * I added the original function from Ozh’s plugin, as well as `get_yourls_shortlink`,
   and also tested that `wp_get_shortlink` is returning the short URL if one exists.
   it WON’T make one, though.

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

The topic ‘Raw URL’ is closed to new replies.

 * ![](https://ps.w.org/yourls-link-creator/assets/icon-256x256.png?rev=1081567)
 * [YOURLS Link Creator](https://wordpress.org/plugins/yourls-link-creator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yourls-link-creator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yourls-link-creator/)
 * [Active Topics](https://wordpress.org/support/plugin/yourls-link-creator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yourls-link-creator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yourls-link-creator/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Andrew Norcross](https://wordpress.org/support/users/norcross/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/raw-url/#post-5759310)
 * Status: resolved