function post_date_shortcode(){ global $post; return get_the_date('dS M Y', $post->ID); } add_shortcode( 'sc_post_date', 'post_date_shortcode' );