WordPress: Get Permalink Shortcode

In Wordpress Editor usage:

[get_link id="66"]

Where 66 is the post or page ID.

Add the following code to your theme's functions.php

// get_permalink shortcode
function csm_get_permalink( $atts) {

	extract( shortcode_atts(
		array(
			'id' => '',
		), $atts )
	);
	
	return get_permalink( $id );
}
add_shortcode( 'get_link', 'csm_get_permalink' );