WordPress

WordPress Blog Info Function

If you are a WordPress theme/plugin developer then there will be times when you need to get information about the current blog such as blog title or blog url. Using this function you will be able to get to many of the details supplied in the general settings menu of the WordPress dashboard.

The WordPress function you will use is.

bloginfo( $data );

This will echo out any of the data you which to show. All you have to do is provide it with the parameter you want to print.

Different Blog Info Parameters

Get Blog Name

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

Get Blog Description

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

Get Blog Admin Email Address

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

Get Blog URL

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

Get Blog WordPress URL

If WordPress is defined at a different location.

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

Get Blog Stylesheet Directory

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

Get Blog Stylesheet URL

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

Get Blog Theme Directory

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

Get Blog Theme URL

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

Get Blog Atom URL

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

Get Blog RSS2 URL

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

Get Blog RSS URL

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

Get Blog Pingback URL

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

Get Blog RDF URL

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

Get Blog Comments Atom URL

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

Get Blog Comments RSS2 URL

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

Get Blog Charset

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

Get Blog HTML Type

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

Get Blog Language

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

Get Blog Text Direction

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

Get Blog Version

<?php bloginfo('version'); ?>
Back to top ^

Join Paulund

  • Get access to 100s of premium tutorials and downloadable content
  • Members content consists of Premium WordPress plugins, CSS packages, jQuery packages, tutorial demo files and templates for 100s of web development tutorials
  • In-depth development tutorials
  • Priority tutorial requests
  • Priority email development support
  • No ads

Here at Paulund you'll find Web Development tutorials and snippets focusing mainly on PHP, WordPress and CSS. Members will get access to premium tutorials that go into more detail about development with these languages. You will also get access to downloadable premium content based on the tutorial.

Join Paulund

Leave a Reply

Your email address will not be published. Required fields are marked *