1

I'm trying to organize my page-$slug.php files all inside a folder, i saw in a post that it was possible to store the files inside a directory in the root path of the theme... i tried to store them like this

enter image description here

But the page-termos-e-condicoes.php wasn't recognized.. is there any other way to do it?

2

The file needs a template header and will only behave as a user-selectable custom page template.

True special templates like page-$slug.php that match the post's slug will only work when they live in the root theme directory.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.