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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

Scan 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