Skip Navigation

[Resolved] cpt page attributes not showing template, only order

This thread is resolved. Here is a description of the problem and solution.

Problem:
Created a new post type, "projects" and checked "Page Attributes" in the checkbox, but it only shows me "order", whereas in other pages I can see "template". I need this because i want to cpt to be full page template.

Solution:
For this you need to have at least one custom php page template and define your CPT in that php template file.

- Edit your CPT using in Types >> Enable "Page Attributes" option & save it.
- Then Edit your php page template file >> look for this section at the beginning of the php template file:

<?php
/**
 * Template Name: About Template 
 * Template Post Type: post, page, event, student

==> In the line #4 you can see I have added event and student CPT slugs, so that the Page Template dropdown appears in that CPT's Edit post screen.

As an example you can see my sample "About Page" template file here:
https://drive.google.com/file/d/0B5EmJQ1qcuyqUzViRDI1TThEX0U/view?usp=sharing

OR alternatively, you can use this plugin as well for enabling Custom Post Type Page Template:
https://wordpress.org/plugins/custom-post-type-page-template/

This support ticket is created 7 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 1.40 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Ido Angel 7 years, 2 months ago.

Assisted by: Noman.

Author
Posts
#569959

hey,
i've created a new post type, "projects". i've checked "Page Attributes" in the checkbox, but it only shows me "order", whereas in other pages i can see "template". i need this because i want to cpt to be fullpage template.
i've tried changing this with css, but since it contains a responsive slider in it it doesn't work.
any help appreciated.
thanks!
ido

#569977

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Ido,

Thank you for reaching out to us. For this you need to have at least one custom php page template and define your CPT in that php template file.

- Edit your CPT using in Types >> Enable "Page Attributes" option & save it.
- Then Edit your php page template file >> look for this section at the beginning of the php template file:

<?php
/**
 * Template Name: About Template 
 * Template Post Type: post, page, event, student

==> In the line #4 you can see I have added event and student CPT slugs, so that the Page Template dropdown appears in that CPT's Edit post screen.

As an example you can see my sample "About Page" template file here:
hidden link

OR alternatively, you can use this plugin as well for enabling Custom Post Type Page Template:
https://wordpress.org/plugins/custom-post-type-page-template/

I hope it helps, Thank you

#569989

perfect. thanks!