The way a shortcode works is that you tell WordPress to look at text within square brackets (
) and evaluate it by running a PHP function. That PHP function can live in your
functions.php file of your theme, or in a plugin file, or in a widget file. Let's create a simple shortcode and include it in with our most recent widget, ...