EDIT: With help of Micheal the answer is single-{post-type}-{slug}.php rather than page-{slug}.php

I have created a custom post type called "Gallery Pages" and added a page called "First One" So the full path for the page is:


Now I want to make a custom page for this page and obviously this doesn't work:


I have also tried


But it doesn't work either. What is the correct file name for the custom page then?

Your Answer

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

Browse other questions tagged or ask your own question.