Add shortcodes to wordpress

Original by reinie, 2016 

This summary note was Posted on

You can insert anything anywhere using a short code.
Place it in you functions.php file:

function get_my_own_shortcode() {
  return '<p>Hello World!<p>';
}

add_shortcode("hello world","get_my_own_shortcode");

Call it anywhere in your post with  [hello world]

More on shortcodes [here]