WordPress already provides an easy function for fetching the comments get_comments() but the function only supports fetching comments of a particular user, or for a particular post and not fetching comments of a particular category. The code for the former two cases, is pretty simple but the last one is not so simple. Here are [Read more →]
Yesterday, I talk about using WP_query or query_posts or get_posts and today I am going to explain the approach I use to have pagination using get_posts(). The other two methods take care of the pagination by them self by just passing the paged parameter along with the function call. But get_posts() is more of a [Read more →]
I finally decided to try Pomodoro technique to see how well it can improve my productivity as I am a lot disorganised, lazy sorta geek (well who isn’t?). So I built up a small script which acts as a Pomodoro timer for me using Ubuntu notification system (Do read it if you haven’t, you need [Read more →]
Yeah! That sounded right. This is a post series where I will show you how to use WordPress to do evil, unethical things which surely doesn’t mean WordPress is a bad piece of software. Its really a great one considering every thing has its share of Pros & Cons. Remember, just like we say, Technology [Read more →]
A friend asked for a help in his project where he required to list all the comments a registered user made on the site. So just for play, I created a small plugin which provides you with a shortcode which you can use on a page link example.com/my-comments/ or whatever. I am zipping it up [Read more →]
Sometime back a friend of mine asked me how can he add a custom registration field to the WordPress registration page, I asked him to google it as I have come across a lot of such tutorials but he was unable to do so and then I found the issue that either the tutorial is [Read more →]
Today I am going to write a quick post on how one can switch the language in bbPress forums as I saw someone asking about it on bbPress.org official forums. Installing bbPress in a different language or changing it to a different language in an already installed bbPress follows exactly the same procedure. There is [Read more →]