Make WordPress Core

Opened 20 years ago

Closed 20 years ago

#3578 closed defect (bug) (worksforme)

Page Template Madness

Reported by: lightdifference Owned by:
Priority: low Milestone:
Component: Template Version: 2.1
Severity: normal Keywords: needs-patch
Cc: Focuses:

Description

I was developing a theme for a site earlier today and I stumbled upon a rather interesting bug. As usual, I deleted the old about page and created a new one. I added the "about" page template I had created, and to my amazement, it was still using the default page template. I removed the default page template in my templates folder and - out of all the things - it simply went back to using the default index page.

After playing around with it for a while, I found a way to fix it. Apparently, the page template name and the filename can't be the same as the actual page name (simply renaming the template to about-page.php and the template name to "About Page" did the trick.)

Change History (5)

#1 @lightdifference
20 years ago

  • Version2.1

#2 @lightdifference
20 years ago

  • Component AdministrationTemplate

#3 @Viper007Bond
20 years ago

  • Keywords needs-patch added
  • Milestone 2.22.1

#4 @ryan
20 years ago

I have about.php with a Template Name of "About" serving as the page template for a page called "About". Working for me.

#5 @foolswisdom
20 years ago

  • Milestone 2.1
  • Resolutionworksforme
  • Status newclosed

Based on Ryan's update sugggesting this is working, closing as WORKSFORME. Can we get some more info if still an issue?

Note: See TracTickets for help on using tickets.