The version 2.3 of WordPress brought us one of the tools expected by all users is the ability to manage Tags (labels) in a simple way and without tedious configurations. It is true that there are plugins to use Tags currently but the configuration is so complicated that it can take hours to adapt your blog and you get the desired result.
The case of the templates is vital, because with them we show our readers, The messages that the visitor sees are included in his code, and with these messages we make our communication space more readable, more comprehensible and, in short, accessible. And this is about everything we do.
But not all developers are still active, or some take to update templates for new versions. As if this were the case, it is especially important that you can manage Tags, and do it yourself (it's very simple).
The Tags system is a very powerful tool for positioning, since it is the language from which the seekers, said finely, so you will do well to take good note.
In Aiming for Indepence have written a wonderful and simple article where they explain, not only how to add the necessary function so that you template is capable of displaying Tags but in itself is a great mini-tutorial of how the templates work in WordPress.
In case you do not speak English, I will summarize the steps to make for your template, in case the developer does not update it to WordPress 2.3, let be able to show and manage the Tags . Incidentally, I'll try to explain something about how templates work in WordPress .
It's actually very simple. Inside the folder where you have installed your blog there is a folder called " wp-content " where, in turn, there are those that contain the plugins (" plugins ") and templates (" themes "). This is where the folders corresponding to your template will be.
Well, look for the folder that contains your template, something like ' / wp-content / themes / miplantilla ' and locate two main files that show the so-called " the loop ". These files are ' index.php ' and ' single.php '. The first one is the one that deals with the information shown on the main page of your blog, and the second one that handles the interface when you click on a specific article (similar to this one will be ' page.php ') the same for static pages). Occasionally, there are templates that manage all of this with a file that is "called" by the previous ones, and which is usually called ' theloop.php '. If this were the case, you would only have to modify this last file.
"The loop" is the communication interface with your readers the part of the code that shows the messages in your articles. There you will find references that show how many comments there are in the article, who wrote it, what day, etc. Also in what category it is archived or with which it is identified.
Well, it is in that part of code where the WordPress 2.3 update acts, and where you may have to add something if your template is not up to date.
You just have to include this code:
and replace the words before separator and after by which you want them to appear in the indicated place. For example, if you want the labels to appear after the article, and before the link to the " Previous " you should paste it after where this appears:
You can place it in other places, of course, but always inside the "loop" zone. I recommend that, with the open source editor, you try a local installation and the same template, and observe the results until you get the desired effect (always work on site before touching anything on your real blog).
The result you would get would be the following:
Before the Tags …
After the Tags …
But you still prefer to show the Tags in the form of "cloud", where the most referenced appear in larger size. In this case WordPress 2.3 also contemplates this possibility and you will not need any plugin for it. You just have to include the following code:
Where the '8' is the minimum font size, and '36' the maximum, although you can try several sizes until you have it to your liking. In 'number' you decide how many tags you want to show. With this you get what is shown here …
And this code can be added wherever you want, not just in the "loop". In the footer of your blog (' footer.php' ) or even in widgets, and without using anything more than a text widget.
Source and captures | Aiming for Indepence via Photo Matt