Posted on 2008/05/06 by JaniWordPress: Get permalink outside the loop $ID = $wp_query->post->ID; $permalink = get_permalink($ID); Adapted from Skippy.