The bloginfo() function is a built-in WordPress function that lets you output key information about your website dynamically. Instead of hardcoding your site’s name, description, or URL into your theme, bloginfo() pulls it directly from your WordPress settings.
Think of it as WordPress’s way of saying:
“Don’t write what I already know. Just ask me, and I’ll tell you.”
What Does bloginfo() Actually Do?
bloginfo() retrieves and displays various bits of metadata (extra information) about your website taken from your WordPress settings. This can include general details like:
- The site title (
bloginfo(‘name’)) - The tagline or description (
bloginfo(‘description’)) - The WordPress address (URL) (
bloginfo(‘wpurl’)) - The stylesheet or template directory (
bloginfo(‘stylesheet_url’)orbloginfo(‘template_directory’))
Each parameter you pass tells WordPress which piece of information you want.
The syntax is this: bloginfo( string $show = ‘’ ).
Where $show parameter is the site information to display. Its default value is :‘’
You can see the complete list of site information you can display with bloginfo() in codex
For example:

NOTE: If you ever change your site’s name, the footer updates instantly—no code editing required.
bloginfo() vs. get_bloginfo()
You might also see get_bloginfo(). It does the same thing, except it returns the value instead of immediately displaying it.
For example:

This is useful when you need to manipulate or combine the value before outputting it.
Why It’s So Useful in Themes
bloginfo() helps make WordPress themes dynamic and reusable. A well-coded theme doesn’t depend on one specific website. It adapts to any site using it. By using bloginfo(), developers can ensure that logos, metadata, and links always match the current site’s configuration.
It’s also vital for SEO and performance.
For instance, when you use:

Wrapping Up
bloginfo() is a small but powerful method. It keeps your themes flexible, your content consistent, and your site metadata accurate. And all this without hardcoding anything.