Sometime we received sql file in multiple files from clients and customers and is required to merged it before importing to PhpMyAdmin. This can be done easily with a simple command “TYPE” in windows.Although this is not the best way to work , It is often very fast & easy . The command used is…
Imagine you have a number of child categories under a single category and you would like to display child categories using parent category template! For example, you have a Category X and you want all of Category X’s children to display using category-x.php template. Category Y and all of it’s children using category-y.php template and…
Simply by adding this short function in your function.php , one can override the default no of post set on wordpress admin section . With this , you can set a different number of posts on pages like archive, search results, etc… You can play changing the values in CODE : [junkie-hightlights color=”red”]Just add the…
Sometime we need to shorten the title when the titles are very long and doesn’t look good on your template. Also, Sometime we need to shorten the title only in front page or in a category page. Try the codes below and choose the one which fits your requirements the most. All you have to…
Sometime ,we want to display a random post from a particular category or a tag. This can be done with a simple hack as below.Also,You can choose how many posts to display,just change the showposts value to your desire no of posts. You can show post only from a particular category by replacing the tag=whatever…
You got a good nice looking wordpress premium theme. but when somebody leaves a comment on your site, the default wordpress gravatar is shown when the commentator doesnt have a gravatar account set up. This piece of code below will change your default wordpress gravatar image to your own gravatar image. All you have to…
Sometime we want to exclude a particular category from displaying on the main page / homepage. This can be done easily by modifying your main index.php file. Use the code below to exclude a particular category from wordpress main page / home page. Simply place the following code in your index.php file before this line…
You have a WordPress blog and for some reason, you do not want display a particular category on your blog search result. This can be done with a little modification on your search.php file of your active theme. Steps! 1.Open search.php file on notepad or any editor. 2. Look for wordpress loop 3.copy and Paste…
By adding this simple function to your wordpress theme function.php , you can control a filter easily. You can change the condition is_page to other conditional tags like is_singular , is_tag , in_category etc .…