Accelerating WordPress with WP Super Cache, Opcache and Autoptimize

WordPress can be very fast after some effort on performance optimization with the help from its plenty of plugins. Possible ways include using cache to cut down the number of database queries, improves HTML/JavaScript/CSS code, and optimizing PHP’s performance with opcode cache. In this post, we introduce how to speed up WordPress with OPcache, page cache and page optimization tools/plugins. Accelerating WordPress Install WP Super Cache ∞ Search WP Super Cache in the WordPress dashboard, install it, activate it and enable the caching in the plugin admin page. » Read more

Effective Anti-Spam in WordPress with Plugins

WordPress has a very rich set of plugins and a combination of them can make anti-spam in WordPress quite easy. Here is a list of plugins that can help prevent spammers from registering spam account (if the site allows registration of new users) and posting spam comments. Anti spam comments ∞ Use the Akismet WordPress plugin. Akismet is a Web service that automatically detects comments and trackback spams. » Read more

Controlling Display of WordPress Widget with PHP Code

I am always wondering how to display different Widgets in WordPress depending on the page/post/category etc. I ever tried some plugins that is for specific purpose. However, they are not flexible enough for all my needs. For example, I want a widget that contains AdSense ad not display on certain posts that I selected and marked by the post meta, which is not easy to control with some plugins that only support limited integrated controlling options. » Read more

WordPress MU: Changing Domain Names

There is no automatic built-in method/function in WordPress to change a multi-user WordPress’s domain name. I faced this problem when I tried to add ‘www.’ to the domain name. Hopefully, many people have this problem and give out pretty good solution. Oremj integrate the DB changes needed into one PHP script, which is quite convenient and works well for me: » Read more

Speeding Up the Site by Using PHP GZIP Compression

Compression is a simple way to speed up the site. PHP’s gzip compression is excellent. And using it is very convenient: Simply put these codes before any HTML content at the beginning of the PHP script: <?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?> In WordPress, the suitable position for these codes is the beginning of the header.php file of the theme. » Read more

How to Redirect WordPress Feed to Feedburner Using .htaccess

.htaccess is a powerful tool. Let’s look at how to using .htaccess to redirect WordPress feeds to feedburner. Let’s use my blog as the example. The WordPress’s feed url of my blog is Now I want to redirect it to feedburner with url . The idea is quite straightforward: For every request to, first check whether the HTTP_USER_AGENT is FeedBurner or FeedValidator. » Read more

WordPress Theme: ZM Theme

About ZM Theme ZM Theme is a simple and light-weight theme for WordPress. ZM Theme provides a green style, bright view and fast rendering experience to the users. ZM Theme passes W3C XHTML 1.0 and W3C CSS level 3 validation. This theme works well on WordPress 2.9.x. ZM Theme is originally designed for this blog based on Green Park 2. After changing a lot of the design and the style and making it pass XHTML 1.0 and CSS level 3 validation, I decided to publish it. » Read more

Put the Categories, Archives and All Posts into Pages

I prefer putting pages that contains all the categories, archives and even all the posts in one page to putting these links in the side bar. Actually, most of time it needn’t to stay on every pages. And if it is in the side bar, the search engine will see these links in every page and think it is very important while it is not so important. » Read more

Use noindex Meta Tag in WordPress to Prevent Search Engine Indexing Categories, Tags and Archives

WordPress has the content duplication problem which may confuse search engines. Duplicate content won’t hurt you, unless it is spammy or keyword stuffing, as said by Matt Cutts, and Google may just ignore the duplicate content. However, instead of letting the search engines decide which pages of the duplicate ones are important, we may only want the search engine to index the posts and pages instead of categories, tags or archives. » Read more

Use Excerpt in Index, Category, Tag and Arhieve Pages for WordPress

By default, all of the content of the post is shown in index, category, tag, archive and search pages. This is duplicate contents which may cause search engine penalty. The better way is using excerpt in index, category, tag and arhieve pages. By doing this the duplication can be avoided and the blog is optimized. After using the excerpt the blog will be much faster. » Read more

Verifying WordPress Blogs with Google Webmasters

Note: this may not be working anymore with latest WordPress and Google Webmasters. Considering this as a historical reference. Google Webmasters gives two methods for verification: Meta tag and HTML file. The meta tag method can not be used for ones that do not have the permission to upload plugins. And usually theses users such as me on do not have the permission to upload files to the root directory either. » Read more

Moved back to WordPress from MediaWiki

WordPress is so missed for many great features and plugins. Hence, we moved the site back to the WordPress system on Jul. 12, 2013. MediaWiki is great but, for this site, WordPress is a better solution. The so missed features of WordPress ∞ Related posts via the YARPP Plugin. URLs without strongly mapped to the title using ‘-‘ with small letters instead of ‘_’ with the exact characters in the title. » Read more