WordPress Functions

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

  • admin_email
  • atom_url
  • charset
  • comments_atom_url
  • comments_rss2_url
  • description
  • home
  • html_type
  • language
  • name
  • pingback_url
  • rdf_url
  • rss2_url
  • rss_url
  • siteurl
  • stylesheet_directory
  • stylesheet_url
  • template_directory
  • template_url
  • text_direction
  • url
  • version
  • wpurl

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.

About Shane

Hi I am Shane the main author of this blog. I am a self taught web developer. I have been working in this industry since 2008. I work a lot with WordPress, Magento, SEO & SEM, and custom built websites. I love all sports and I will try anything at least twice.

Working remotely is one of the fastest growing perks in the working world. It’s something that people talk about a lot, and it’s a solution to the “work/life balance” problem that bothers so many people. Most of us have asked the question, “Why do I work so hard?” For some people, there are many sides

Know little about the use of keylogger for Android? Wondering why so many friends choose free Android spy? What benefits can you get from tracking cell phones of your children and employees with the help of sms tracker? Keep reading and find the answers in this short article. Have you ever dreamed of taking control

As a photographer whether it be a hobby or on a professional level the realm of high dynamic range photography can be very troublesome without photo editing software specifically made for photo HDR. Aurora HDR photography can be very challenging as it is, but with Aurora the job gets a little bit easier. Some might