I updated WordPress to 3.4 on my localhost environment this morning and found it broke my pagination setup I have for a certain theme I developed.
Basically for the index.php I have the specific pagination setup of one article per page. For archives and everything else the standard WordPress settings are used. This was working in 3.3.2 but since upgrading to 3.4 the pagination setup for the index.php was broken.
Here is the code I’m using. I’m aware that it maybe a hackish type solution so Im open to suggestion on how to improve it/get it working in 3.4.
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('posts_per_page=1&paged=' . $paged); <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <!--The post --> <?php endwhile; ?> <?php else : ?> <h2>Not Found</h2> <?php endif; ?> ?>
- The topic ‘WordPress 3.4 broke my paginaton setup’ is closed to new replies.