Bloginfo Function Shortcode

Bloginfo Function Shortcode

The bloginfo() function in WordPress gives you access to lots of useful information about your site. Here is the complete list. This can be used inside Page/Post content itself using shortcode, here we can make a shortcode to return the values. Add this functin to your functions.php file in your theme:

Now you can output any of the values by calling that shortcode with attribute “key”. For example, the name of your site:

I’m a web developer / PHP programmer. I am also working on custom plugin development of wordpress.

  • codechk

    Thanks for the info.