Tags » Shortcode

Sharing is Caring

Even as a very “non-tehcy” person, I’ve heard the term API tossed around quite often. However, it wasn’t until our lab session this week that I realized how integral APIs (application programming interfaces) are in program development and the way we interact with the web each day. 391 more words

Shortcode

Call Bloginfo using shortcode

function digwp_bloginfo_shortcode($atts) {

    extract(shortcode_atts(array(
            'key' => '',
            ), $atts));

    return get_bloginfo($key);
}

add_shortcode('bloginfo', 'digwp_bloginfo_shortcode'); 

Usage:

  

Shortcode for phpinfo()

Silly, I know, but I like the idea of having phpinfo() being displayed through a shortcode. So here it is!

Code And Design

It's True!

Just playing with shortcode and embedding. ;D

Shortcode