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 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)
This topic contains 2 replies, has 2 voices.
Last updated by 7 years, 2 months ago.
Assisted by: Noman.