In WordPress, bloginfo()prints a piece of information about your site, such as the site title, the tagline, or the home URL.
Tell it what you want with the $show value. Common values are name, description, url, charset, version, and language. If you need the value in a variable instead, use get_bloginfo().
Syntax
Call it with one value. The text is printed right away.
WordPress
<?php bloginfo( 'name' ); ?>
Call
What it does
bloginfo( 'name' )
Prints the site title.
bloginfo( 'description' )
Prints the tagline.
bloginfo( 'url' )
Prints the home URL.
Need the text in a variable? Use get_bloginfo() instead.
Full declaration
WordPress
bloginfo( string $show = '' ): void
Parameters
Parameter
Description
$show
string. What to print, for example name, description, url, wpurl, charset, version, language, stylesheet_url. Default is an empty string, which prints the site title.
Return Value
Return Value
Description
void
Nothing is returned. The value is printed.
WordPress Examples
Three short theme examples. Each one shows the code and what it prints.