Codex

Template Tags/bloginfo

Contents

Description

Displays information about your blog, mostly gathered from the information you supply in your User Profile and General Options from the WordPress Administration panels (Settings → General). It can be used anywhere within a page template. This always prints a result to the browser. If you need the values for use in PHP, use get_bloginfo().

Usage

 <?php bloginfo('show'); ?> 

Examples

Show Blog Title

Displays your blog's title in a <h1> tag.

<h1><?php bloginfo('name'); ?></h1>

Show Character Set

Displays the character set your blog is using (ex: utf-8)

<p>Character set: <?php bloginfo('charset'); ?> </p>

Show Blog Description

Displays Tagline for your blog as set in the Administration panel under General Options.

<p><?php bloginfo('description'); ?> </p>

Parameters

Note that directory URLs are missing trailing slashes.

admin_email = admin@example
atom_url = http://example/home/feed/atom
charset = UTF-8
comments_atom_url = http://example/home/comments/feed/atom
comments_rss2_url = http://example/home/comments/feed
description = Just another WordPress blog
url = http://example/home
html_type = text/html
language = en-US
name = Testpilot
pingback_url = http://example/home/wp/xmlrpc.php
rdf_url = http://example/home/feed/rdf
rss2_url = http://example/home/feed
rss_url = http://example/home/feed/rss
siteurl = http://example/home
stylesheet_directory = http://example/home/wp/wp-content/themes/largo
stylesheet_url = http://example/home/wp/wp-content/themes/largo/style.css
template_directory = http://example/home/wp/wp-content/themes/largo
template_url = http://example/home/wp/wp-content/themes/largo
text_direction = ltr
version = 2.7
wpurl = http://example/home/wp

Related

See also index of Function Reference and index of Template Tags.