Why do you need Shortcodes?
When you write content for your website, chances are, you’ll use a lot of the same HTML and CSS to include special functionality on specific pages. now here is a chance to be able to call regularly used pieces of code in seconds while decreasing the chance of mistakes.
What Are WordPress Shortcodes?
Shortcodes are just that, short bits of code that cut down on repetitive strings of HTML, and can be inserted anywhere in your site. For instance, you could create a shortcode to insert a call to action button, or to display a Google AdSense ad, or to create 3 columns of content without any HTML markup.