Codex tools: Log in / create account
Contents |
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().
<?php bloginfo('show'); ?>
Displays your blog's title in a <h1> tag.
<h1><?php bloginfo('name'); ?></h1>
Displays the character set your blog is using (ex: utf-8)
<p>Character set: <?php bloginfo('charset'); ?> </p>
Displays Tagline for your blog as set in the Administration panel under General Options.
<p><?php bloginfo('description'); ?> </p>
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