// Add Shortcode function imagesize_shortcode( $atts , $content = null ) { // Attributes $atts = shortcode_atts( array( 'width' => '', 'height' => '', ), ); return '<img src="' . $content . '" width="' . $width . '" height="' . $height . '">'; } add_shortcode( 'imagesize', 'imagesize_shortcode' );