To achieve this goal, we have to make a custom SQL query by using the $wpdb object. Let’s start by creating 3 php variables: 1- Number of days between today and X days ago 2- Today’s date 3- Today’s date – X days.
Ever insisted by another blog partner to list his posts separately? Many blogs are run by more than one authors. To achieve this you first need to know the ID of each author or specific author you want to list posts. On your WordPress admin area, go to Users. While you place your mouse over [...]
In this tutorial we will learn how to show total number of comments at your blog using the $wpdb object. Use the following code where you want to display total number of comments at your blog.
In this tutorial we will display how many posts have been posted today. For blogs which publish posts more than one each day, this tutorial can help them displaying today’s stats about published posts. Get today’s date, and then create another variable containing today’s date – 24 hours. Then, we send SQL request to the [...]
Feedburner is a very useful service for adding a visual user and search engine friendly rss with your blog. Every successful blogger uses Feedburner service. Feedburner also provide a way to know your subscribers and emails your subscribers when ever an update is available at your blog without causing any load at your own server. [...]
This tutorial show you that how to display the total number of posts published on your WordPress blog. Although there are number of WpPlugins are available for stats, but what about creating your own stats for just Total Number of Posts as clean as original. This function is not by default in WordPress software. But [...]
It is easy to upload file when the Register_Globals are set to ON in the php.ini file (php configuration file) which is not recommended in any case for security reasons. When Globals are OFF then in this case I have tried this script and it works fine. Following is the script. Create two files. one [...]
In your HTML directly link to the file which is to be downloaded. i.e. <a href="………/files/somefile.pdf">Download Pdf</a>. You will get a pop-up box asking whether you want to save the file or open it normally. Now you want to download it so open .htaccess file and write there some lines according yo your requirement mentioning [...]


