Make WordPress Core

Opened 18 years ago

Closed 17 years ago

#8961 closed defect (bug) (invalid)

query_posts with future for archive results into wrong page turning

Reported by: treibstoff Owned by:
Priority: normal Milestone:
Component: Template Version: 2.7
Severity: normal Keywords: needs-patch
Cc: Focuses:

Description

Since wp 2.7 the monthly & yearly archiv shows the published & future posts if I'm using

<?php query_posts($query_string.'&post_status=publish,future'); if (have_posts()) : ?>

to start the loop inside the archive.php

It will show me all published & future post in the 2009 archiv - but if the side is pagged WP is unable to find the last page!!'''

Have a look at this side: ​http://lix.in/-3e79ed and choose the yearly archiv for 2009!

If the yearly archiv got only published post to see everything works fine while pagging.

It is allways the last page it doesn't find.

Right now I didn't find any ticket or solution for this problem.

Change History (5)

#1 @treibstoff
18 years ago

  • Summary query_posts with future for archive results into wrong pagging → query_posts with future for archive results into wrong page turning

#2 @treibstoff
18 years ago

for any reason I wrote pagging instead of page turning (previeous / next)

#3 @Denis-de-Bernardy
18 years ago

  • Keywords needs-patch added; query_posts future archive removed
  • Milestone 2.8 → Future Release

#4 @Denis-de-Bernardy
18 years ago

  • Component General → Template

#5 @Denis-de-Bernardy
17 years ago

  • Milestone Future Release
  • Resolution → invalid
  • Status new → closed

you should be using your theme's functions.php for this, and override the WP for archive pages.

Note: See TracTickets for help on using tickets.