$urle = wp_extract_urls(get_the_content()); if($urle) { echo '<a href="'.esc_url(end($urle)).'">Ostatni link z wpisu</a>'; }