Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme Developer Handbook: Clarify documentation that page-templates folder is not necessary for theme templates #1850

Open
carolinan opened this issue Feb 25, 2025 · 2 comments
Labels
developer documentation (DevHub) Improvements or additions to developer documentation [Status] To do Issue marked as Todo themes Issues for Theme Developer Handbook

Comments

@carolinan
Copy link
Collaborator

Issue Description

I am moving this from Trac: https://core.trac.wordpress.org/ticket/46490

Hi,

While browsing Page Templates in the Theme Handbook to refresh myself on recommend theme structures and page templates; I became a little confused and suggest some clarification for users.

The File Organization of Page templates section initially confused me because it states "WordPress recognizes the subfolder page-templates." This is misleading and can give readers the impression that WordPress would only recognize that specific folder name.

As of WordPress 3.4, any subdirectory folder can be used (as far as I know).

I suggest rephrasing it something like to be can be placed in any subdirectory but suggest a folder like page->templates or templates. You cannot use a 2nd-level subdirectory (e.g. pages/templates/).

URL of the Page with the Issue

https://developer.wordpress.org/themes/template-files-section/page-template-files/

Section of Page with the issue

Why is this a problem?

Suggested Fix

@carolinan carolinan added [Status] To do Issue marked as Todo themes Issues for Theme Developer Handbook labels Feb 25, 2025
Copy link

Heads up @kafleg @carolinan @TeBenachi - the "themes" label was applied to this issue.

@github-actions github-actions bot added the developer documentation (DevHub) Improvements or additions to developer documentation label Feb 25, 2025
Copy link

Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer documentation (DevHub) Improvements or additions to developer documentation [Status] To do Issue marked as Todo themes Issues for Theme Developer Handbook
Projects
None yet
Development

No branches or pull requests

1 participant