Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Quote

A simple quote shortcode.

// Add Shortcode
function quote_text_shortcode( $atts , $content = null ) {

	// Attributes
	extract( shortcode_atts(
		array(
			'citation' => 'Somebody Who Got Quoted',
		), $atts )
	);

	// Code
return '<blockquote>' . $content . '</blockquote><cite>' . $citation . '</cite>';

}
add_shortcode( 'quote', 'quote_text_shortcode' );