Video Shortcode
// Add Shortcode function custom_shortcode( $atts ) { // Attributes $atts = shortcode_atts( array( 'src' => '', 'width' => '640', 'height' => '250', ), $atts, '' ); <iframe src="https://player.vimeo.com/video/331881283" width="640" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe> } add_shortcode( '', 'custom_shortcode' );