content top

Get post count of a category including sub-categories in WordPress

Get post count of a category including sub-categories in WordPress

From the title, you probably have guessed what I am going to talk about. In WordPress, we have many APIs to list down the category, but when we use the get_category function, it lacks the ability to show the post counts from its sub or child categories. Whereas, when we use query_posts or get_posts to get posts from a particular category, it returns posts from child categories as well. I faced this problem, while developing the 2nd...

Read More

TimThumb vulerability – How it got hacked & how to recover

TimThumb vulerability – How it got hacked & how to recover

In our last post, we talked about the fact that we got hacked because of TimThumb vulnerability. While fixing the vulnerability, I realized that, we were not the only one who got hacked. Plenty of websites using TimThumb to resize their images, got hacked. So, I thought of putting together a nice step by step guide on how to recover from this kind of hack. Please note that, while the nature of the hack may vary, we are trying to give an...

Read More

Properly add pagination to your WordPress Plugin

Properly add pagination to your WordPress Plugin

It has been quite a long I am doing stuffs with WordPress. The one of the nice thing about WordPress is, we get a ready to use admin backend with almost all possible css’ needed! Nice table structure, nested menu, Title with nice icons, pagination…you just name it! WordPress has them all! To use them, what we need to do is code our plugin so that it generates the proper xhtml code with proper css classes. Finding the correct...

Read More

Add dynamic Login Logout n Site Admin button to WordPress using WP API

Add dynamic Login Logout n Site Admin button to WordPress using WP API

This tutorial is about adding a “dynamic” login/logout and Site Admin button somewhere on your wordpress theme template. This is basically same as the Meta widget of wordpress. But in case if you don’t like all the lists given by the meta widget, and want to add only the Login Logout button and Site Admin button then this is how you do… #0: Plan where you want the Buttons: This depends entirely on you. It can be...

Read More

Make Google Adsense custom Search with WordPress Custom Page Template

Make Google Adsense custom Search with WordPress Custom Page Template

If you have tried searching our site, then you should have noticed that we actually use Google Custom Search by Adsense. The advantage is not only it gives more accurate search result, but also it shows your adsense ads on the search page, which helps you earning revenue out of your blog. Basically, Google Adsense for Search is a tool using which you can use Google’s Search feature to show search result on your website along with your...

Read More

The concept behind making an Interactive WordPress Custom Page

The concept behind making an Interactive WordPress Custom Page

You should have read our previous article on Adding an Article page to your WordPress blog using Custom template. After writing that tutorial, I felt that many people might get confused about the xhtml markups used in the page template. Basically, there is no hard and fast rule for writing the markup of your Custom Page Template. What we have to is, check the markup of the theme we are using and write our page template according to that. In...

Read More
Page 1 of 212
content top
TOP