• For some odd reason wp.me is redirecting back to an old domain that was changed 5 months ago and is expired. I checked in my database on myPHPadmin and wp-config and they both have the current url.

    remove_action( ‘wp_head’, ‘wp_shortlink_wp_head’);

    Nothing happened, so I altered it a bit to this

    remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 ); // removing the default shortlink
    add_action( 'wp_head', 'bilty_shortlink_head'); // adding the new bit.ly shortlink
    
    function bilty_shortlink_head() {
    	global $post;
    	$shortURL = get_post_meta($post->ID, 'bitlyURL', true);
    	if(!empty($shortURL)) {
    		echo '<link rel="shortlink" href="'.$shortURL.'" />'."\n";
    	} else {
    		echo '<link rel="shortlink" href="'.get_bloginfo('url').'?p='.$post->ID.'" />'."\n";
    	}
    }

    With no success in removing wp.me. Has anyone found success in removing it?

Viewing 1 replies (of 1 total)
  • Thread Starter kakers88

    (@kakers88)

    Solution: JetPack > Settings > WP.me Shortlinks (bottom of page) > Deactivate.

    Still not sure why it used an old and expired domain.

Viewing 1 replies (of 1 total)

The topic ‘Remove WP Shortlink’ is closed to new replies.