WP 3.0 bug with pagination? (when using static page as homepage)
Our users have reported trouble with our custom page templates when using a static homepage. The page template has a query_posts with pagination in it. Here is an example for our standard blog page template:
This worked fine in all our themes in WP 2.9.2, and works fine in WP 3.0 as a normal page:
If you set it up as static page homepage:
It shows only the page title of that page:
Exactly the same page template as static homepage in WP 2.9.2:
I couldn’t see any changes on the codex page for query_posts, so I’m thinking this might be a bug?
Copying the page template (template-blog.php) to home.php works fine as well.
Another note, it doesn’t matter which static homepage you select… It can be a normal page, it doesn’t have to be the page template in question. The page template stops working when you set a static homepage.
If I add cat=& to the query, the page shows, but pagination doesn’t work…
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=&paged=$paged"); ?>
If I echo $paged on /?paged=2 it simply outputs 1
- The topic ‘WP 3.0 bug with pagination? (when using static page as homepage)’ is closed to new replies.