Posts tagged: WordPress

WordPress Image Upload Error

It seems many WordPress users run into an image upload error with the media uploader. The error message are "An error occurred in the upload. Please try again later" or "HTTP error". It seems that this error occurs because of permission settings in ".htaccess" file of the top WP directory. There are some plug-ins available for this problem, but if you feel comfortable with editing .htaccess file, please go ahead and add these lines: <IfModule mod_security.c> <Files upload.php> SecFilterEngine Off SecFilterScanPOST Off </Files> </IfModule> Editing .htaccess file should be pretty simple when you have an access to FTP.

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