content top

WP Category Post List version 2 released

WP Category Post List version 2 released

So after around one year of first release, I finally came up with the 2nd version of the 5 star rated WordPress Category Post List plugin. As you have already guessed, there are plenty of new features in the WP-CPL V2. I have added excerpt option along with shortcode to fulfill everyone’s need. It is needless to say, the current version is far better than the previous version. Due to hefty amount of added features, I gave it a V2 tag....

Read More

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 version...

Read More

MySQL: Working with date time arithmetic #Part 2.3.1

MySQL: Working with date time arithmetic #Part 2.3.1

So, this is the second last part of the long awaited MySQL datetime series. Previously we have leant how to work with MySQL datetime datatypes and how to automate some insertions using some MySQL datetime commands. Obviously the only thing left to discuss is, the (difficult) datetime arithmetic inside MySQL. As in any language, the datetime arithmetic is not as straight forward as normal arithmetic. The reason is simple, we can’t say...

Read More

C Program: Replacing a substring from a string

C Program: Replacing a substring from a string

This is a nice piece of program I wrote a few months ago. One of my students requested me to write this. So, here it is! Hope this might be useful for you… #1: What the program does: This program finds all the occurrences of a sub-string within a given string and replaces that with our provided string. Basically there are many similar programs but, most of them lack the ability to find multiple occurrences. So I wrote this keeping in...

Read More

C Program: Adding two polynomials using Linked List

C Program: Adding two polynomials using Linked List

So, this is our first C program in the blog. We first thought of creating a separate blog for C & C++ related posts, but because of the maintenance issue, we finally decided to merge it to the main blog. So, without any further here is the program. #1: What the program does: This program is a practical implementation of the data structure “Linked List“. We use a linked list to dynamically store user input of polynomial...

Read More
Page 2 of 5412345...1020...Last »
content top
TOP