WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#10564 closed defect (bug) (invalid)

wp_link_pages('next_or_number=next') does not work in index.php

Reported by: dancer Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8
Component: Themes Keywords: reporter-feedback
Focuses: Cc:

Description

Setting the parameter next_or_number=next in the function wp_link_pages in the index.php of a theme does not work. There is no HTML output to create the link to the next page. However, it does work in archive.php and single.php. On the other hand, the parameter value of next_or_number=number does work on all pages.

Change History (3)

comment:1 @scribu5 years ago

  • Keywords reporter-feedback added

Are you sure you put the code inside The Loop?

Please post here the code you are using.

comment:2 @nacin5 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Re-open with steps to reproduce.

comment:3 @nacin5 years ago

  • Milestone Unassigned deleted
Note: See TracTickets for help on using tickets.