Wordpress Theme Tags: ‘bloginfo’
Wordpress Theme Tags
The first step in designing your own WordPress themes is to understand the theme tags. The tags are made up of very simple PHP commands. Today I will show you how to use the first command, or tag called ‘bloginfo’ and show you all of it’s features.
This is how it looks with no value:
<?php bloginfo(”); ?>
So let me show you what you can do with this tag:
Show your blogs title:
<?php bloginfo(’name’); ?>
Of course you might want your guest to know your blogs description/tagline:
<?php bloginfo(’description’); ?>
Your blogs url would be:
<?php bloginfo(’url’); ?>
RSS Feed Address:
Atom feed:
<?php bloginfo(’atom_url’); ?>
RSS2
<?php bloginfo(’rss2_url’); ?>
RSS 0.92
<?php bloginfo(’rss_url’); ?>
RDF/RSS 1.0
<?php bloginfo(’rdf_url’); ?>
Comments RSS
<?php bloginfo(’comments_rss2_url’); ?>
Your blogs pingback url
<?php bloginfo(’pingback_url’); ?>
Admins email Address:
<?php bloginfo(’admin_email’); ?>
Want to show the what version of WordPress your running
<?php bloginfo(’version’); ?>
Your blogs character encoding
<?php bloginfo(’charset’); ?>
The url for your WordPress Insallation
<?php bloginfo(’wpurl’); ?>
The directory of you template:
<?php bloginfo(’template_directory’); ?>
Not to be confused with your themes url:
<?php bloginfo(’template_url’); ?>
The url where your theme style is located.
<?php bloginfo(’stylesheet_url’); ?>
That’s it for now…
Leave a Reply