Wordpress Blogspot Tutorial

How to Change WordPress Search into AdSense Search

Jason wrote a very nice tutorial on how to turn the Wordpress Search box into Google AdSense search.

The tutorial is for a self-hosted Wordpress blog.

This is especially useful if your Wordpress theme has an embedded search box in the header. Instead of letting your visitors searching from the Wordpress search box, it's far better to let them search via Adsense Search box: it's more accurate and more profitable as well.

Remove W3 Total Cache Reinstall WP Super Cache

If you got RSS Feed error, most probable culprit is your WP Cache plugins. Removing it will get your blog back on track. There are other possibilities as well, such as blank/white spaces, etc.

So, I removed W3 Total Cache and Reinstall WP Super Cache

Visit this link to: Delete/uninstall W3 Total Cache

After almost three days of searching of what makes this blog's feed wasn't updating and been in error and googling of how to fix RSS Feed error, I finally found out the culprit: W3 Total Cache. It seems this great cache is not compatible with WP 3.1 of this blog.

So, I removed W3 Total Cache, and reinstall WP Super Cache.

Until W3 Total Cache is totally compatible with the latest wp version, I will not install it again.

WordPress RSS Feed XML Error How to Fix

How to fix the RSS Feed error in Wordpress like XML parsing error unclosed CDATA section, feed could not be found, etc

RSS Feed Problems
Probable Root and Causes
How to Know the Problem
How to Fix the Error

I. RSS Feed Problem in Wordpress

Variation of error messages. The followings are some of them:

RSS Error: XML error: unclosed CDATA section at line 72, column 55
RSS Error: XML error: unclosed CDATA section at line 41, column 55
RSS Error - The feed could not be found
line 82, column 0: XML parsing error: :82:55: unclosed CDATA section
line 93, column 0: XML parsing error: :93:55: unclosed CDATA section
The URL does not appear to reference a valid XML file. We encountered the following problem: Error on line 82: XML document structures must start and end within the same entity -> this error message occur when you try to integrate the feed to Feedburner.

II. Probable Root and Causes

There is no single factor which might cause this RSS Feed error in wordpress. But Wordpress expert agree that at least these following factors may become one of the culprit:

Wordpress plugins: one or more Wordpress plugins you installed might cause the mess. In's case, it's W3 Total Cache which causes the RSS Feed error. So, I deactivate and delete it.
Blank space: a blank space in might cause RSS Feed error.
Bad themes: some themes incompatible with the Wordpress version you are using.
A bad post. a bad post is perhaps causing RSS feeds to not work correctly.
PHP being compiled without the curl option.
Others uncommon causes.

In my case, W3 Total Cache might be (not surely) the culprit. Particularly, if you enable the Minify setting. A Hostgator technician said:

The page appears to be minified, which is a process that removes unnecessary lines/characters from source code. Do you know what was used to minify this? It may have truncated the CDATA section.

III. How to Know the Problem

To know if there's a problem with your Wordpress RSS Feed is easy, just go to and enter your blog feed in the box

IV. The Solutions how to fix it
After identifying the problems, you might know the solution to fix it. Everytime you try one solution, validate your blog feed via to make sure which one is working

If the problem is related to one or more plugins, disable it (them), etc.
If the problem is related to the theme you are using, change the theme.
If the cause is blank/white space in , install Fix RSS Feed plugins to make it right. To correct things manually, follow this useful guide.
Check your wp-rss2.php and wp-atom.php files for blank lines outside of bracketed sections.
Check your wp-config.php file for blank lines outside of bracketed sections.
Check your theme's functions.php file for blank lines outside of bracketed sections.
One by one, disable plugins and revalidate until you isolate the one causing the problem.
If the above two points are not solving your problem, try one of these tips below:
Insert / comment the line in the function in wp-includes/template-functions-post.php file line 57 with the folowing code:// $content = str_replace(']]>', ']]>', $content);
Edit php.ini
Go to php.ini (ask your hosting administrator to setting your php.ini)
Search for "shell_exec"
Enable this function "shell_exec"
If the feed error is caused by a bad post, try to locate which post that cause the error and follow this tips everytime you write a post / article:
Avoid composing and copying content from Word into your blogging tools.
"Clean" copied text by pasting it into a plain text editor, such as Notepad (Windows) or TextEdit (Mac) and the copying the newly cleaned text before pasting it into your blogging application.

Uninstall Delete WP Super-Cache

How to Uninstall, remove and delete WP Super-Cache easily from your self-hosted Wordpress blog

For other Wordpress plugins, to delete them is easy: deactivate it, and delete it. For WP Super-cache, however, you need to do an additional work in oder to be able to uninstall and delete it altogether from your Wordpress system.

There are three methods on this. The first two are quite similar, while the third is manual.


How to Delete / Uninstall WP Super-cache
Method One
Method Two
Method Three
Why we want to delete WP Super-cache

How to Delete / Uninstall WP Super-cache. The uninstallment and deletion can be done from within Wordpress admin interface.

I. 1. Method One
Follow these simple step by step tutorials

After login to your Wordpress blog -> Plugins -> Plugins
In WP Super-Cache -> click Edit uninstall supercache 1 edit
In Plugin Files panel, click Uninstall.php
Find this code: define( ‘UNINSTALL_WPSUPERCACHE’, '' );
Change it to: define( ‘UNINSTALL_WPSUPERCACHE’, '1' );
Click Update File.
Now, go to Plugins -> WP Super Cache -> Deactivate
Delete. -> Done.

I.2. Method Two

After login to your Wordpress blog -> Plugins -> Plugins
In WP Super-Cache -> click Edit
In Plugin Files panel, click Uninstall.php
Find this code: define( ‘UNINSTALL_WPSUPERCACHE', '' );
Change it to: define( ‘UNINSTALL_WPSUPERCACHE’, '1' );
Click Update File.
Open your browser (Firefox or IE) and load directly .
Confirm the deletion.
Back to your WP Dashboard and delete plugins: Plugins -> Plugins -> WP Super-Cache -> Delete. Done.

I.3. Method Three: Remove Manually

Remove the WP_CACHE define from wp-config.php. It looks like define( 'WP_CACHE', true );
Clear the cache in the backend page and then deactivate the plugin on the plugins page.
Remove the Super Cache mod_rewrite rules from your .htaccess file.
Remove the files wp-content/advanced-cache.php and wp-content/wp-cache-config.php
Remove the directory wp-content/cache/
Remove the directory wp-super-cache from your plugins directory.

Further reading

II. Why we want to delete WP Super-cache
There are various reasons why one wants to delete a plugin, or WP Super-cache in this case. Some reasons being:

This plugins is not compatible with other plugins which is considered more important to a particular blogger.
You may want to change to another caching plugins which is more advanced and highly recommended by your hosting provider--this is my case.

W3 Total Cache Wordpress Plugins

W3 Total Cache Wordpress Plugins is the most recommended Wordpress cached plugins used by such big websites / blogs as, etc and How to uninstall / remove if thing goes wrong.


Why W3 Total Cache
About W3 Total Cache
How to Install
How to Remove the Credit
How to Uninstall Remove Delete WTC Plugins
How to Fix Installation Errors
Error: advanced-cache.php is not installed
Error: db.php is not installed

I. Why W3 Total Cache
My blog (not this one) got crushed two days ago because of sudden spike of visitors of around 65,000 pageviews a day. Actually, such number of visitors is still tolerable to Hostgator shared hosting so far as you have Wordpress cache installed. Unfortunately, I did not install it (as I did not expect the sudden rise of visitors). So, the CPU usage reaches between 26 to 30 percent. I breached the TOS 25 percent CPU usage. And the frontpage is disabled and cannot be accessed for a while.

Then came a letter of warning from Hostgator, which advise me to install W3 Total Cache which it said is the best among Wordpress cache plugins available.

Hostgator said: the plug-in W3-Total-Cache can be setup to provide sort of caching with the page caching method "Disk (enhanced)". Also, we would strongly recommend that you enable "Database Cache" and "Object Cache" in the plug-in's settings for the best performance.

II. About W3 Total Cache

Name of plugins: W3 Total Cache
Author: Frederick Townes
Functionality: Dramatically improve the speed and user experience of your site. Add browser, page, object and database caching as well as minify and content delivery
Download: Download for free here (zip file).
Server compatibility: it's compatible for any type of servers including shared hosting, VPS, dedicated and clusters.

III. How to Install
To easy-install it, follow these steps (WP version 2.8 to 3.1)

After login -> Plugins -> Add New ->
Upload -> browse W3 Total Cache zip file you've just downloaded -> Install Now
Activate it. Done.
You need to make a proper settings after activation.

IV. Benefits and Features

At least 10x improvement in overall site performance (Grade A in YSlow or significant Google Page Speed improvements) when fully configured
Improve conversion rates and "site performance" which affect your site's rank on
"Instant" second page views (browser caching after first page view)
Optimized progressive render (pages start rendering immediately)
Reduced page load time: increased visitor time on site (visitors view more pages)
Improved web server performance (sustain high traffic periods)
Up to 80% bandwidth savings via minify and HTTP compression of HTML, CSS, JavaScript and feeds
A lot more

If you're confused how to set it up, keeping the default setting (plus enabling database cache and object cache) is good enough. However, if you want to optimize the full advantage and features of this plugin, has written a very nice step-by-step how-to settings which is a must read.

V. How to Remove the Credit Comment HTML
If your install it successfully, you may find the credit comment HTML in the view source like this:

If you like it, keep it that way. If you don't, or just want to remove the plugins name and URL, you may delete it right from your Wordpress admin. Here's how:

After login ->Plugins ->Plugins -> w3 total cache -> Edit
w3-total-cache/lib/ -> w3-total-cache/lib/W3/Plugin.php -> w3-total-cache/lib/W3/Plugin/TotalCache.php
Find the word using F3 or Ctrl+F you want to remove. Example,