What is a shortcode in wordpress?


A shortcode is a WordPress-specific code that lets you do very usefull things with very little effort. Shortcodes can embed files or create objects that would normally require lots of complicated, ugly code in just one line.

Example :
[code]preserves the formatting of source code.
[sitemap]generates a sitemap of your site’s pages.