• Resolved adamhideseek

    (@adamhideseek)


    I want to make a custom post type that uses the regular WordPress Page template. I want it to look identical to a regular page when I edit it (no Post Format like Standard/Gallery/Video/Audio). But regardless of the settings I choose, like capability_type set to ‘page’ instead of ‘post’, the new post type uses single.php as it’s template. I want the post type to use page.php as it’s default file, not single.php. Is there any way to do this? I feel like this should be the first option for creating a custom post type – “Do you want to base it on a post or a page?” Am I missing something obvious here?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Largely just how WordPress is set up for the topic, is why it is how it is.

    Impossible for me to say exactly how much in the template file itself is explicitly tied to the page post type, but you should be able to just duplicate the page.php file and rename it to single-POST-TYPE-SLUG.php with “POST-TYPE-SLUG” being the actual post type slug, like “movie” or what have you.

    The single post type permalinks should then be picking up that template file instead of single.php

    Thread Starter adamhideseek

    (@adamhideseek)

    Hi Michael, thank you for your prompt response! Your suggestion worked, I appreciate the help. Hope you have a nice holiday season!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome, and you too!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to use a regular Page as the base for new post type?’ is closed to new replies.