WordPress _e() function - support multi languages

I like to keep WordPress templates as simple as possible. While cleaning up some common templates, I found these functions _e() and __() are being used quite a lot. I did a simple search and found out that they are designed for multi-language support. Strings from WordPress templates can be translated to other languages when they are parameters of the localization functions _e() or __(). Example: __("Categories") _e("Categories") The difference of these two functions are that the function _e() echoes the string and the function __() returns the string. Using the "GNU gettext" framework, it searches the localization module and returns translation of the argument, in ...

WordPress Size of Post Box - Length of Editor Box

I was a little annoyed by the tiny editing box of WordPress admin 'Write' and 'Manage' pages. Although I got used to its smallness, I thought I would give it a try to figure out and looked into the PHP script 'post-new.php'. And I realized that it looked like it's something that a user can easily configure through WordPress admin interface. I looked at the 'Settings' page. There it was! Settings for 'Writing'. I just clicked it and changed to the value of 'Size of the Post Box' to 25. That will definitely satisfy me! I should start to check out Settings page ...

WordPress Category Order and Category Hierarchy

Category Hierarchy I have a personal WordPress blog where there are some sub categories under top categories. Its theme is non widgetized, and the sidebar function to display categories is "wp_list_categories(show_count=1&hierarchical=0)." By default, WordPress displays all categories at one level regardless their hierarchy. Fortunately, I found out a simple modification would fix the way to display categories in regard to hierarchy. Change the value of the argument 'hierarchical' to '1' from '0'. Before: wp_list_categories(hierarchical=0) After wp_list_categories(hierarchical=1) Category Order I also have another blog where I want to control over category display order. The default display of categories in WordPress is by their alphabetical order. ...

Trackbacks and Pingbacks (WordPress)

What are trackbacks and pingbacks? Trackbacks and pingbacks are used to build links by informing other blogs (sites) that you've posted an entry with links to their posts. These features are supported by many blogging and CMS software including WordPress. How different are pingbacks and trackbacks? Trackbacks and pingbacks are very similar in their functionalities, but there are three major differences between them. 1. Pingbacks are sent automatically. Most blog or CMS software scans a new post, finds the links in the entry and pings those URLs automatically. On the contrary, trackbacks are sent manually by entering the trackback URLs of the referenced site. 2. ...

WordPress IP Block

For the last few days, I've been annoyed by spam comments.  They all came from the same IP.  Luckily, blocking this IP seems very easy. Click on 'Settings' from WordPress Admin. -> Click on 'Discussion' from the sub menu. -> Add IP addresses that you'd like to block in the 'Comment Blacklist' box. That's it!  This will prevent comment spammers from taking your precious time.