In order to get your shortcode to show up, you have to register it first.
This is done with add_shortcode()
. You can read more about the Shortcode API in the Codex.
Here is an example of a Youtube video-shortcode that accepts 3 parameters; Video ID (from Youtube, the last part of the Youtube url), height and width. This would go into your functions.php file, or in a function plugin.
<?php
function wpse178406_video_shortcode($atts, $content = null) {
extract(shortcode_atts(array(
"id" => '',
"width" => '560',
"height" => '315'
), $atts));
return '<iframe src="https://www.youtube.com/embed/'. $id .'" width="'. $width .'" height="'. $height .'" frameborder="0" allowfullscreen></iframe>';
}
add_shortcode("video", "wpse178406_video_shortcode");
?>
Then use it like this in your posts or
to specify the width and height.