Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

poll-shortcode

adds a poll

// Add Shortcode
function custom_shortcode_poll( $atts ) {

	// Attributes
	$atts = shortcode_atts(
		array(
			'poll-id' => '1',
		),
		$atts
	);

	output

}
add_shortcode( 'poll', 'custom_shortcode_poll' );