Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 4 years ago

#5501 closed defect (bug) (invalid)

next_posts_link broken on custom page with template of the same name

Reported by: drphil9001 Owned by:
Priority: normal Milestone:
Component: Template Version:
Severity: normal Keywords:
Cc: Focuses:

Description

If you have a Page and a template that is named the same name as the Page, the next_posts_link and previous_posts_link do not work. Note that this is not the file name, but rather the Template name in the file itself.

The following steps will reproduce this bug:

  1. Copy index.php to Blog.php in the default theme
  2. Give Blog.php the Template Name "Blog"
  3. Write > Write Page
  4. Enter "Blog" for the page name with no content
  5. Select "Blog" as the page template.
  6. View the page.

Change History (1)

#1 @xknown
19 years ago

  • Milestone 2.5
  • Resolution → invalid
  • Status new → closed

Closing this ticket as invalid because next_posts_link and previous_posts_link are not supposed to work on individual pages or posts.

Please reopen if I have misunderstood your intentions.

Note: See TracTickets for help on using tickets.