admin管理员组文章数量:1279017
I recently renamed a custom template file, changing it from template-programs.php
to template-program-schedule.php
.
In my template dropdown menu, Program Schedule shows up as expected, but Programs is also still there.
I have cleared all caches and hard refreshed the browser, but it still shows up.
I've tested the template dropdown functionality by creating dummy template files, which always appear in the dropdown menu after creation and then disappear as expected when deleted, but Programs remains in the list.
I searched throughout the whole website directory, and there is no template-programs.php
file anywhere.
Can a template listing be generated by a plugin or some other means without there being a respective template file?
How can I remove this template dropdown listing and/or track its source? Or, is it possible to flush and rebuild the template dropdown menu?
I recently renamed a custom template file, changing it from template-programs.php
to template-program-schedule.php
.
In my template dropdown menu, Program Schedule shows up as expected, but Programs is also still there.
I have cleared all caches and hard refreshed the browser, but it still shows up.
I've tested the template dropdown functionality by creating dummy template files, which always appear in the dropdown menu after creation and then disappear as expected when deleted, but Programs remains in the list.
I searched throughout the whole website directory, and there is no template-programs.php
file anywhere.
Can a template listing be generated by a plugin or some other means without there being a respective template file?
How can I remove this template dropdown listing and/or track its source? Or, is it possible to flush and rebuild the template dropdown menu?
Share Improve this question edited Sep 30, 2021 at 18:41 Buttered_Toast 2,8191 gold badge8 silver badges21 bronze badges asked Sep 30, 2021 at 0:34 Paul BradyPaul Brady 1054 bronze badges1 Answer
Reset to default 1Scan the files for a comment header that might have Template Name: Programs
present. The template drop-down is populated by the comment header in files. I believe this is only true for files in the theme's root folder and from a template
sub-folder within the theme (if one exists).
本文标签: page attributesWhy is a renamed custom template file still showing up in the template dropdown menu
版权声明:本文标题:page attributes - Why is a renamed custom template file still showing up in the template dropdown menu? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741289084a2370443.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论