• Resolved treeslikeme

    (@treeslikeme)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Sed Lex

    (@sedlex)

    Actually, and as indicated in the plugin, you just have to call get_short_link()

    Thread Starter treeslikeme

    (@treeslikeme)

    I guess I missed that. Thank you so much for your quick response!

    Sed Lex

    (@sedlex)

    You are welcome 🙂

    Sed Lex

    (@sedlex)

    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.