WP 3.0 bug with pagination? (when using static page as homepage)
-
Hey,
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:
[Code moderated as per the Forum Rules. Please use the pastebin]
This worked fine in all our themes in WP 2.9.2, and works fine in WP 3.0 as a normal page:
Blog page 1: https://cl.ly/6716a2a1fd3e314deac5
Blog page 2: https://cl.ly/969377b06da3669e9b53If you set it up as static page homepage:
https://cl.ly/ebffedf37b7a3c5d709b
It shows only the page title of that page:
https://cl.ly/8a3addadd9defe9dbce2
Exactly the same page template as static homepage in WP 2.9.2:
https://cl.ly/9eff8e3a1ec33a5b9f51
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.