Tag: optimize

Speed up WP_Query

In WordPress, when a query does not need paging and you only want a limited amount of results, like the last 5 posts, set the ‘no_found_rows’ parameter to true.  This prevents WordPress from doing additional work in counting the total matched rows,

Tagged with: , ,

WPEngine for WordPress Hosting Worth It?

This is not so much of a review, but more of how I came to a decision on WPEngine.  At $29/ month for the Personal plan I would not have even looked at WPEngine a year ago.  Why pay that

Tagged with: , , ,

template_include vs template_redirect

WordPress has a filter called ‘template_include’ and it also has an action called ‘template_redirect’.  The filter allows you to change what template file to use by returning a file path while the action is usually used to write whatever you

Tagged with: ,

Optimize WordPress Plugins: Woocommerce

Woocommerce is the best ecommerce solution for wordpress, but it loads a hecka lot of javascript (countries) in each page load.  There is a way to get rid of all these extra styles and scripts and just load it for

Tagged with: ,

WordPress Cron

A great way to take more control of your wp-cron and also slightly speed up wordpress is to disable cron and scheduled a cron job on your server to run wp-cron.php.  You just need a server that supports cron jobs.

Tagged with: , , ,

Optimize Custom WordPress Queries

A couple things that may optimize your custom wordpress queries.  First there is a parameter called ‘fields’ where  you can specify that you only want the ID field back.  Something like below: $some_query = new WP_Query( array( ‘fields’ => ‘ids’

Tagged with: , ,

Caching With Widgets

W3 Total Cache is a great WordPress plugin that will help your Google Page Speed score and will also speed up your website.  The only problem is that it doesn’t clear the cache when widgets are updated.  So for example

Tagged with: , , , ,

MAMP optimizations

“Optimizations” in the sense that you’ll have to do less work.  This website gives some great tips on saving you some time using MAMP. http://www.sitepen.com/blog/2008/05/16/supercharge-mamp/ This site below actually helped me with the silent MAMP startup.  Read the comments on

Tagged with: , ,

Slow Javascript in IE

Problem: The menu on this website:  http://www.sohtanaka.com/web-design/side-navigation-tooltip-popup-bubble/ ran fine in IE.  It was quick and worked fine.  On my website however, it ran slooow. Solution: Look for large images that may be loaded.  IE doesn’t seem to handle them very

Tagged with: , , ,

Image Optimization

Some great tools for optimizing images so that it downloads faster: http://www.webdesignbooth.com/12-really-useful-image-optimization-tools-for-web-designers/

Tagged with: