I'm building my own theme and so far so good.
I created a template and named it correctly but it doesn't appear in any drop-down or indeed there's even no page attribute option at all.
Do I need to add something to the functions file?
There is nothing either in 'screen options'
Thanks for all help
I'm building my own theme and so far so good.
I created a template and named it correctly but it doesn't appear in any drop-down or indeed there's even no page attribute option at all.
Do I need to add something to the functions file?
There is nothing either in 'screen options'
Thanks for all help
Share Improve this question asked Dec 8, 2019 at 2:56 HenryHenry 9831 gold badge8 silver badges31 bronze badges1 Answer
Reset to default 1This works:
<?php
/*
* Template Name: Top Ten
* Template Post Type: post, page, product
*/
get_header(); ?>
I was missing the Template Post Type
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744921444a4601157.html
评论列表(0条)