WordPress is the top in Blogging Content Management Systems by far with its vast following and well known product. Not to mention WordPress has some of the best functionality for the end user. I have talked a little in the past about WordPress and how to set in up and how to create parts. Well now I really want to get into the heavier insides of WordPress. Things that maybe the majority of end users will not understand.
Most Valuable Function
I am going to start off this functions post talking about probably the most heavily used WordPress function called bloginfo. This is a really useful function if you can understand it. It is quite easy to start the function because it is built in to WordPress all you have to do is call the function and give it what parameters you would like it to have. The code to call this function looks something like this < ?php bloginfo(‘YOUR PARAMETERS’); ?>. As you can see it is quite easy to call this function but in order to understand what you can do with this function is another hurdle.
List of the Parameters
Well that looks like a long list of stuff but a lot of those come in handy quite often. I am not going to go into what they all do but I will talk to you about a couple of them so that you have some idea of what you can do with them.
Most Common Parameters
The first one that I am going to talk about is the url. Well to me this one is self explanatory what this does for your site is echos out the url of the site. So if your site is http://www.example.com then the bloginfo function for url would echo out your url. So if you needed to do an a tag and you wanted to echo out your url all you would have to do is say now a lot of people would look at that and say why wouldn’t I just write my url in their instead. Well if you write your url in there it will only work for your url and so if you are creating a theme then you wouldn’t be able to sell this theme. now I am going to move on to another parameter known as name. All that this does is echos out what you called your blog and you can change this inside the admin section of WordPress. So a practical use for this would be putting it inside of the a tag that we just used so it would look like this <?php bloginfo(‘name’); ?>. That way if you named your blog EXAMPLE the link would say EXAMPLE. The last parameter that I am going to talk about is description this is also known as your tag line. You can also set this up inside of the admin section of your blog. This comes in handy quite often in the header and footer sections of a site. Mainly because almost every company has a tag line or MATO that they try to emphasize on. So by saying <?php bloginfo(‘description’); ?> you can plaster your MATO all over your site. Well that is my last example for you I really hope that you start messing around with the other parameters because they can come in really great use to you and your site.