WordPress creates shortlinks for each page and post
I used “Remove WP version and shortlink” plugin and it removed the shortlinks. https://wordpress.org/plugins/remove-wp-version-and-shortlink/
I used “Remove WP version and shortlink” plugin and it removed the shortlinks. https://wordpress.org/plugins/remove-wp-version-and-shortlink/
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
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 URL in content
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