I have developed a WordPress site locally on apache, but online it’s running on Nginx.
Locally everything works as it should, but I have one slight problem online:
On my single.php posts, I’m querying the main loop under the post, and paginate the result (12 posts per page). This works as a charm on my local apache configuration, but online I’m running into the following problem:
It fetches the 12 first posts, but on page 2 it shows the first 12 posts once again, instead of 13-24. This goes on for every page, it only shows posts 1-12.
I’m wondering if this could be a rewrite issue or something?
This is the code I’m using below the single post to fetch the main loop:
<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("paged=$page"); if (have_posts()) : while (have_posts()) : the_post(); ?>
Any ideas what could be the problem?
You can see the site in question here: Delbart.se.