Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8083467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:29:13+00:00 2026-06-05T17:29:13+00:00

I’ve created a WordPress theme that uses several custom page templates. As per the

  • 0

I’ve created a WordPress theme that uses several custom page templates. As per the documentation http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates I’ve accomplished this simply by setting a comment at the top of my template-files:

/* Template Name: MyCustomTemplate */

And it’s worked fine for as long as I can remember (it’s not the first time I use custom page templates). Today we updated to Wodrpress 3.4 and suddenly the option to select a custom template has disappeared from the admin (it used to be a drop-down in the “Page Attributes” box to the right). However, if you use the “Quick Edit” in the list of pages the “Template” drop-down is still visible, but you can only select “Default template” – none of the custom templates that I’ve set up.

According to this blog post: http://nacin.com/2012/03/29/page-templates-in-subdirectories-new-in-wordpress-3-4/ WP 3.4 has added support for custom page templates inside a sub-directory, but it’s unclear whether this directory needs to be named something special or if you still need the “Template Name”-comment at the top of the files. I’ve tried creating a “pages”-directory and first put an empty .php-file in it but that did nothing. I then tried putting one of my custom page templates (complete with the “Template Name”-comment) in there but that didn’t help either.

It’s worth noting that the pages that were already assigned to use a custom page template still render with that template – even though it says “Default template” in “Quick Edit” and there are no other templates available in the drop-down.

There’s almost nothing to be found on the interwebs yet but I’m hoping one of you will know what’s going on.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:29:15+00:00Added an answer on June 5, 2026 at 5:29 pm

    Well we figured it out. Apparently from 3.4 the “Template Name”-comment needs to look like this:

    /*
        Template Name: MyCustomTemplate
    */
    

    And it won’t show up in the admin if it looks like this:

    /* Template Name: MyCustomTemplate */
    

    Hope this helps somebody else.

    Edit: “WordPress” emailed us and said this is a bug that will be fixed with the next version.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I am doing a simple coin flipping experiment for class that involves flipping a
I need a function that will clean a strings' special characters. I do NOT

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.