How to append short url to specific external links

Mostly from https://stackoverflow.com/questions/7118823/check-if-url-has-certain-string-with-php Check if the url has your string, then spit something different out based on it. Perhaps something like… $url=”http://” . $_SERVER[‘SERVER_NAME’] . $_SERVER[‘REQUEST_URI’]; if (false !== strpos($url,’forms.woo.com’)) { echo ‘?pageurl=” . home_url() . get_the_ID(); // there”s your page id url } else { the_permalink(); // plain old permalink }

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

Updating shortlinks from staging [closed]

There are 2 solutions to your problem: You can go to the Jetpack menu in your dashboard and disconnect, then reconnect to WordPress.com. It will force an update of your Jetpack settings. You can contact the Jetpack support team here: http://jetpack.me/contact-support/ They can update your Jetpack settings for you.