WordPress.org

Ready to get started?Download WordPress

Forums

Template file drop down not appearing (3 posts)

  1. Krash101
    Member
    Posted 5 years ago #

    Hi guys,

    I'm having a little trouble with template files.

    I understand that by placing:

    <?php
    /*
    Template Name: Name
    */
    ?>

    Within the php file name.php

    This should create a template option within edit/add new page admin.

    I had this working, then, randomly, it stopped. The above code is just fine, the only changes I've made are to the template it's self.

    I have couple of templates within my theme directory, which worked with no problems. Now the template drop down box doesn't appear - as though WordPress isn't registering there are template files within my directory.

    I've tried doing a search online, but I came back with no results.

    Hopefully someone has experienced this before and can give me a helping hand,

    Thank you for your time,

    Krash.

  2. scraster
    Member
    Posted 5 years ago #

    I had this problem a while back and found one janky solution after a lot of search--sometimes switching to another theme in your install and then switching back to you primary theme will make your templates appear. I know that sounds weird, but worked for me for a while.

  3. shiola
    Member
    Posted 4 years ago #

    Good call Scraster. Just switched to Classic theme then switched back to my custom theme and hey presto I'm back business.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.