Title: “wp_get_shortlink()” function
Last modified: March 2, 2021

---

# “wp_get_shortlink()” function

 *  Resolved [chriskal](https://wordpress.org/support/users/chriskal/)
 * (@chriskal)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/wp_get_shortlink-function/)
 * Hi,
 * Is it possible to let Blog2Social post the [shortlink] of the website? I am using
   very long categories and post titles, so it would be great to post just the ../
   p=123 to facebook and twitter. I only found bit.ly ect. in the settings, but 
   I am not using them. I of course can change the link in every network by hand
   before posting it to social, but it would be great if b2s can display the right
   link right from the start.

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

 *  [Blog2Social-Support](https://wordpress.org/support/users/blog2socialsupport/)
 * (@blog2socialsupport)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/wp_get_shortlink-function/#post-14121586)
 * Hello,
 * Thanks for reaching out.
 * Of course, Blog2Social can post a short-link of your website automatically.
    
   Besides Bitly, Blog2Social is compatible with Rebrandly and Sniply. You also 
   can select those link-shorteners in the settings of Blog2Social.
 * [How do I activate / deactivate the link-shortener?](https://www.blog2social.com/en/faq/index.php?solution_id=1039)
 * Please let me know if you have further questions.
 *  Thread Starter [chriskal](https://wordpress.org/support/users/chriskal/)
 * (@chriskal)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/wp_get_shortlink-function/#post-14121729)
 * Thank you for your reply.
    I indeed saw the Rebrandly and Sniply settings right
   by the bit.ly settings. But what I would like is to use the wordpress-own [shortlink]
   link like [http://www.domain.com/?p=123](http://www.domain.com/?p=123).
 * Is this possible?
 *  [Blog2Social-Support](https://wordpress.org/support/users/blog2socialsupport/)
 * (@blog2socialsupport)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/wp_get_shortlink-function/#post-14122663)
 * Hello,
 * Thanks for your feedback.
 * You can edit the structure of your links in your WordPress settings.
    WordPress-
   > Settings -> Permalinks
 * I attached a screenshot for you.
    [https://prnt.sc/10bbuvv](https://prnt.sc/10bbuvv)
 * Please let me know if you have any other questions.
 *  Thread Starter [chriskal](https://wordpress.org/support/users/chriskal/)
 * (@chriskal)
 * [5 years ago](https://wordpress.org/support/topic/wp_get_shortlink-function/#post-14407017)
 * Hi,
    thank you for your reply. It is not quite what I want. Changing the permalinks
   will change the URL shown in the browser bar as well. I need to keep my URL as
   it is. Only when I share the content on twitter ect. I need a shorter URL. With
   other PlugIns I can use the wordpress funktion
 * “wp_get_shortlink()”
 * It will show the short [http://www.domain.com/p=123](http://www.domain.com/p=123)
   form of the URL. But I cannot find any way to let blog2social use that function.
   
   I could edit the blog2social PHP files if it is necessary. But since I did not
   write this plugIn, I do not know where or what to change.
 *  [Blog2Social-Support](https://wordpress.org/support/users/blog2socialsupport/)
 * (@blog2socialsupport)
 * [5 years ago](https://wordpress.org/support/topic/wp_get_shortlink-function/#post-14407337)
 * Hello,
 * Thank you for your feedback.
 * If you do not want to change the permalinks in WordPress, please be so kind as
   to use a link-shortener which can be activated in the Blog2Social settings.
 * The following guides show you exactly:
    [How to use the URL Shortener Sniply and add CTA snips to your short links](https://www.blog2social.com/en/faq/index.php?solution_id=1166)
 * [How to use the URL Shortener Rebrandly for your Social Media Strategy](https://www.blog2social.com/en/faq/index.php?solution_id=1163)
 * Please let me know if you have any other questions.
 *  Thread Starter [chriskal](https://wordpress.org/support/users/chriskal/)
 * (@chriskal)
 * [5 years ago](https://wordpress.org/support/topic/wp_get_shortlink-function/#post-14407391)
 * Thank you for your replay.
    As you can see in my first post, I did see that I
   can use link-shortener like bit.ly. But as I also wrote, I do use my own which
   is connected to the wordpress function
 * “wp_get_shortlink()”
 * I need a workaround for blog2social to make it use that. Is there no way to do
   so?
 * Best regards
 *  [Blog2Social-Support](https://wordpress.org/support/users/blog2socialsupport/)
 * (@blog2socialsupport)
 * [5 years ago](https://wordpress.org/support/topic/wp_get_shortlink-function/#post-14411660)
 * Hello,
 * Thanks for your feedback.
 * We have already added your request to our development list for future developments.
   
   However, this is a very unique request. We will let you know when this feature
   or an appropriate workaround is available in a future update.
 * Thank you so much for your feedback. Your suggestions help us to continuously
   improve Blog2Social.
 * Please let me know if you have any other questions.

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

The topic ‘“wp_get_shortlink()” function’ is closed to new replies.

 * ![](https://ps.w.org/blog2social/assets/icon-256x256.png?rev=3076476)
 * [Blog2Social: Social Media Auto Post & Scheduler](https://wordpress.org/plugins/blog2social/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/blog2social/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/blog2social/)
 * [Active Topics](https://wordpress.org/support/plugin/blog2social/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/blog2social/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/blog2social/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Blog2Social-Support](https://wordpress.org/support/users/blog2socialsupport/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/wp_get_shortlink-function/#post-14411660)
 * Status: resolved