How To create shortcode in Wordpress
The shortcode API in wordpress allows you to create your own shortcodes by adding functions to your theme functions.php template (this is located at www.example.com/wp-content/themes/yourtheme/).
You can also create shortcode for plugin . it can be use in your wordpress page.
Here simple shortcode Example for Wordpress