Simple Shortcodes: Shortcode functions can be added to plugin code or your theme’s functions.php file. If it’s the latter, I’d recommend creating a separate shortcodes.php file, then adding include('shortcodes.php'); to functions.php. Here’s a basic “Hello World” example: function HelloWorldShortcode() { return '<p>Hello World!</p>'; } add_shortcode('helloworld', 'HelloWorldShortcode'); Enter [helloworld] somewhere within a page or post to output the result of … Continue reading How to Create Your Own WordPress Shortcodes