Archive | February 22, 2012

WordPress site stuck in maintenance mode

If you are updating you plugins and your site is stuck in maintenance mode, you can just delete the .maintenance file in you site’s root directory and you are back online

Create custom page template for blog posts

If you want to create a custom page template for your blog posts, you can use this query so the pagination still works:

<?php query_posts( array( 'paged' => get_query_var('paged') ) ); ?>

In the bottom of the page, reset the query:

<?php wp_reset_query(); ?>