Very slow query

To check if the query itself is slow or anything else slows it down, try running your query directly in the database, and have a look at how long it takes there. <?php echo $GLOBALS[‘wp_query’]->request; ?> This shows you the latest Query that WordPress ran in your database. If the query is really slow in … Read more

Website Loads Twice Unnecessarily

As I’ve found, this happens when your html, css or javascript tries to load a resource and you haven’t specified a path or wrongly specified root. For instance, I’ve seen examples on people having this problem while doing <img src=”http://example.com” /> background:url(); In my case specifically, was assigning $.ajax() to a global variable so I … Read more

Improve or optimize a very slow query

Persuming “article_datetime” to be a numeric value, I would suggest that instead of using ‘orderby’ => ‘meta_value’ use ‘orderby’ => ‘meta_value_num’ If still query is slow, than remove: ‘orderby’ => ‘meta_value’, ‘meta_key’ => ‘article_datetime’, ‘order’ => ‘DESC’ and instead sort the result in php.

wp-admin slow in multisite

I ended up enabling WP_DEBUG and found an error – something about fsockopen() not being able to connect to my host (I didn’t write it down and now can’t reproduce it) – and found that it was a DNS issue;- my subdomain (foo.example.com) was resolving to the correct IP (10.0.0.1) but the primary domain wasn’t. … Read more

WordPress dashboard is slooow. Front end is fast

Try this link: WordPress Support It suggests these 7 steps about half way down: Manually run /wp-admin/upgrade.php (visit it in your browser). Try decativating all plugins. If that resolves the issue, reactivate each one individually until you find the cause. Try switching to the Twenty Ten theme to rule-out a theme-specific issue. Download WordPress again … Read more

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