Add Short codes to WordPress

Original by Reinie, 2016Hamster_gagarin_linkedin
hamster writter This summary note was posted on 6 December 2016, by in Wordpress #

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]