Did you know that in wordpress you can have category based image tags that will allow you to have different images relevant to the specific categories? The method to do this is as follows:
1. Images must have the same name of the category .
2. To make it easier, the images must be of the same format and must be in the same director. You can further decorate them by using the same dimensions for all of them.
3. Edit the file: wp-includes/classes.php
Within the class Walker_Category, create a variable and assign the path or URL of the image, complete with HTML code
4. Link the variable image with the link of the category (within the previous function ):
$ Link .= $ catimg . $ cat_name . '< / a > ';
If you want to display images related to the names of the categories, here's the solution.
The steps are simple:
1) Create a directory in the root of your blog with the name imgCategories and upload images with extension gif , png or jpg. Images that are uploaded must have exactly the same name as the concerned category.
2) In the post where you want to display the images of the categories, insert the following code:
Copyright Warning: The content of bdnetsoul.com is strictly prohibited to use for commercial purposes without the prior written approval of bdnetsoul.com. bdnetsoul.com vigorously pursues any violation of copyright, site owners are responsible for infringements liable to legal action even if content is provided by an agency or web designer.