This makes it really easy to just output commonly-used, standard WP site info like “site name” anywhere on a site with a shortcode. It’s easy enough to do this with any WP setting or custom setting adding using a custom field extension.
// Blog info shortcode
function bloginfo_shortcode( $atts ) {
extract(shortcode_atts(array(
'id' => '',
), $atts));
$value = get_bloginfo($id);
return $value;
}
add_shortcode('bloginfo', 'bloginfo_shortcode');