How to Replace Old Domain URL in wp_posts Table
I migrated my WordPress website to new domain, so I need to update all image URLs in wp_posts, wp_postmeta, and wp_options table which are still pointing to old domain. These are the SQL syntaxs to...
View ArticleHow to Fix Litespeed Web Server Error: “406 Not Acceptable This request is...
LiteSpeed Web Server is the leading high-performance, high-scalability web server. I found this error when I tried to save post (press Update button) in WordPress. To fix this problem, modify .htaccess...
View ArticleHow to Fix WordPress Error “Briefly unavailable for scheduled maintenance....
This maintenance message shows when WordPress updating its version, theme or plugin. Sometimes the updating process gets interrupted or fails for any reason. To fix this problem, delete .maintenance...
View ArticleHow to Fix “PHP Fatal error: Allowed Memory Size of xxx Bytes exhausted…” on...
PHP has a default memory limit of 8MB which is set in php.ini file. If your .php script exceeds more than the limit it will throw “PHP Fatal Error Allowed Memory Size Exhausted”. To settle this...
View ArticleHow to Fix High CPU Usage on WordPress
Few days ago I got complain from my hosting company that my website which is WordPress produced high CPU usage all the time. Below are what I’ve done to fix the problem: I disabled all plugins in...
View ArticleHow to Get First Image URL from the Post on WordPress
The following function is used to get first image URL from WordPress post. Paste below function on /wp-includes/functions.php file. Now you can show the image using this syntax: Keywords:<img...
View ArticleHow to Change Excerpt Length in WordPress
Function the_excerpt() can be used to show summary of article or post in WordPress. As default, the excerpt length is set to 55 words. We can control this length by adding few lines code in...
View ArticleHow to Change Excerpt Length in WordPress
WordPress function the_excerpt() is used to show excerpt of an article. As default, excerpt will have 55 words. We can change the length of the excerpt as we want. Below is how to change excerpt length...
View ArticleHow to Delete Unused Tag in WordPress
After playing with auto grab content plugin, I found so many (2000+) unused tags in my WordPress. To clean up all of it, just install Mass Delete Unused Tags plugin. Login to WordPress as...
View Article