WP_Query times out

What you are seeing isn’t “bad” exactly, you’ve just got a terrifically labor intensive query and WP_Query is not smart enough to optimize it– it doesn’t even try. Briefly, you’ve got a bunch of JOINs, you’ve got two LIKE conditions, which will read every row in the table of that post type, those likes are … Read more

Performance impact of using global $post

There is no significant difference. Both will use a cached version of the current $post, in one you will access it via global $post, in other via functions that will get the data from the $post in the cache. I would suggest moving the in_the_loop() condition to be first in the IF.

Preload external PHP information

WordPress has Transient and Object Cache APIs available. In a default WordPress install, Transients are stored in the database while Object Cache is stored in memory for the duration of the request. You can change this configuration to using something like Redis, Memcache, or APC to store and access this faster. In your case, you’d … Read more

Poor performance on multisite install

I just ran your page through the NET console on Firebug just so I could see what was loading … and wow … you have a lot of things loading that don’t need to be. From the looks of things, the following plug-ins are adding scripts and other collateral files to your load which are … Read more

Image Preloading

I think Pingdom Tools gives you a false image. I opened your website (advia.com.au?) in Chrome with the Developer Tools open, and it loads 57 items, not 146 as Pingdom Tools shows. I think Pingdom Tools just scans the HTML and CSS files and loads all images it finds there – you have 113 url() … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)