<?php bloginfo('name'); // Site name ?>
Tag Archives: Bloginfo
How to get the site description – Wordpres
<?php bloginfo('description'); // Site description ?>
How to get the charset used in the wordpress site
<?php echo bloginfo('charset'); // Site charset ?>
How to get the vesrion of wordpress
<?php echo bloginfo('version'); // WordPress version ?>Or else load the page wp-includes > version.php and find ot the following line:$wp_version = '2.8.4';
How to get the text direction in the wordpress site
<?php bloginfo('text_direction'); // Text Direction ?>
How to get the language used in the wordpress site
<?php bloginfo('language'); // Site language ?>
How to get the email address of the site admin – WordPress
<?php bloginfo('admin_email'); // admin email ?>
How to get the theme url – WordPress
<?php bloginfo('stylesheet_directory'); // Theme path ?>
bloginfo function and its parameters
name = Testpilot .
description = Just another WordPress blog .
admin_email = admin@example .
url = http://example/home .
wpurl = http://example/home/wp .
stylesheet_directory = http://example/home/wp/wp-content/themes/child-theme .
stylesheet_url = http://example/home/wp/wp-content/themes/child-theme/style.css .
template_directory = http://example/home/wp/wp-content/themes/parent-theme .
template_url = http://example/home/wp/wp-content/themes/parent-theme .
atom_url = http://example/home/feed/atom .
rss2_url = http://example/home/feed .
rss_url = http://example/home/feed/rss .
pingback_url = http://example/home/wp/xmlrpc.php .
rdf_url = http://example/home/feed/rdf .
comments_atom_url = http://example/home/comments/feed/atom .
comments_rss2_url = http://example/home/comments/feed .
charset = UTF-8 .
html_type = text/html .
language = en-US .
text_direction = ltr .
version = 2.9.2 .