Custom short url for wordpress post

Without a plugin or service? You can’t. There’s no such thing. From the documentation for wp_get_shortlink() (emphasis mine): This function exists to provide a shortlink tag that all themes and plugins can target. A plugin must hook in to provide the actual shortlinks. Default shortlink support is limited to providing ?p= style links for posts. … Read more

Replacing the WP.me URL shortener with Bit.ly

Totally possible, here is a great walkthough: http://bavotasan.com/2010/create-bit-ly-short-urls-for-your-posts-in-wordpress/ Bullet points: -Write a function that gets the bitly link upon publish -Remove the default action and add your own -Call wp_get_shortlink() like normal and bitly will be used

Short links in wordpress not working properly

Shortlinks are not natively supported by WordPress. What you are calling a shortlink (the one ending in ?p=123) is actually the standard permalink, based on the post ID. Shortlinks encrypt the actual permalink, which may as elaborate as you mention in your first example. External services such as Jetpack (wp.me) and Bitly (bit.ly) will take … Read more