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'); ?>

Written on

UpChecker

Reliable uptime monitoring and instant alerts for any website downtime.

  • Uptime Monitoring
  • Performance Monitoring
  • SSL Certificate Alerts
  • Domain Monitoring
  • DNS Checker
  • XML Sitemap Monitoring