Comments are very important part of a blog. Some developers use WordPress as their primary CMS to build websites and sometimes client do not need comments section at all, because he needs a website and not a blog. Comments section can be removed from your blog in a very simple way.

Just edit your single.php file from your theme.

{ read more }

,

Adsense advertisment is very popular among bloggers. Many like to display ads on their homepage. Why not after the first post? Here is a very easy way to do so by using a simple php variable as a counter.

The only thing we need is a simple php variable (here named $count) which will count how many posts are listed. If we just listed the first post, we will display the Adsense code.

Here’s the code. Paste it on your index.php file, instead of your WP loop.

{ read more }

,

by Hiroshi on November 21st, 2008

Most of the blogs, even popular blogs have their permalink structure like:

http://www.yourblog.com/year/month/day/post-name/

WordPress Offers following permalink structures:

http://www.yourblog.com/?p=123 (Default)
http://www.yourblog.com/2008/11/10/sample-post/ (year/month/day/postname)
http://www.yourblog.com/2008/11/sample-post/ (year/month/postname)
http://www.yourblog.com/archives/123 (numeric)
and custom permalink structure

The recommended one by SEO experts is following:

http://www.yourblog.com/sample-post/

Which can be achieved by putting /%postname%/ in custom permalink box from your admin area under permalinks.

{ read more }

,

by Hiroshi on November 20th, 2008

From SEO point of view, the title tag is one of the most important tags of webpage. The title appears as a link in search engines results and social bookmarking sites. We all download free WordPress themes and use. Most WordPress themes display the title tag in a non-optimized way. Here We shall customize this to obtain SEO-friendly and logical title tag for our blog.

Let’s modify the way your WordPress theme displays the title tag at different parts of your blog.

{ read more }

,

FFmpeg is a complete solution to record, convert and stream audio and video. It includes libavcodec, the leading audio/video codec library. FFmpeg is developed under Linux, but it can compiled under most operating systems, including Windows.

The project is made of several components:

{ read more }

,

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.

{ read more }

,

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 an any username, look for the URL address appearing in your browser’s status bar. The user ID is displayed in the URL. Find any WordPress user ID. Suppose it is 7. You want to list all posts published by author having ID 7.

{ read more }

,

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.

{ read more }

,

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 database by using the $wpdb->get_var() method.

{ read more }

,

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 service is free.

Using .htaccess, we can redirect WordPress RSS Feeds to feedburner. Each time someone will click on a link to http://www.yourblog.com/feed, he’ll be redirected to http://feeds.feedburner.com/yourblog.

Simply edit your .htaccess file which will be located in root directory of your blog by following method and paste the following code in that.

{ read more }

, ,