Site running slow on new server?

Your site is very, very heavy at 4+ megs. Lighten it up; see http://gtmetrix.com/reports/www.moseleycoachsales.co.uk/eyz4qxQx Fix the code errors, such as not specifying image dimensions, not correctly scaling your images, not optimizing your images, setting browser caching and expires headers, etc. Your site speed has very little to do with one 404 for one style sheet. … Read more

Editing post and page responding 503 Service Unavailable

Your scripts might be stuck in infinite loop, not producing a fatal error but causing the server to timeout the request after some time. Try installing xdebug for your OS/distribution (php-xdebug in recent Ubuntu versions) which will enforce a xdebug.max_nesting_level directive that should log an actual error and a call stack to help you identify … Read more

Large Number of WordPress Posts

The performance of WordPress does not depend on the number of posts. It depends on the server performance (how fast can PHP scripts be executed). And the performance of the MySQL Server. The server performance is normally no problem if you got enough memory. The bottleneck is in most cases the MySQL server and the … Read more

What is the best way to count and display the number of posts?

Another solution would be to use an ordered list. $my_query = new WP_Query($args); if ( $my_query->have_posts() ) : echo ‘<ol style=”list-style:decimal”>’; while( $my_query->have_posts() ) : $my_query->the_post(); echo ‘<li><a href=”‘ . get_permalink( get_the_ID() ) . ‘”>’ . get_the_title() . ‘</a></li>’; endwhile; echo ‘</ol>’; endif;

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