Forums

[resolved] New templates are not listed in template dropdown. (4 posts)

  1. vaib007
    Member
    Posted 3 years ago #

    Hi,

    I am using defult theme for my web site. I've created new page templates and uploaded it.

    But when i tried to add new page by selecting new template these new templates are not appearing in templates drop down.

    I've also used follwoing coment on the top of the new template files.
    <?php
    /**
    * @package WordPress
    * @subpackage Default_Theme
    */

    /* Template Name: abc
    */
    ?>

    Also how to get rid of "Hello world .... " post. Since i am using wordpress for website but not blog I want to use pages but not posts.

    Please help, i am new to wordpress.

    Regards

  2. Should be in the format:

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

    Then change to the default theme and then back to your custom theme, then you should see your template pages.

    Go to edit posts and delete that post.

  3. vaib007
    Member
    Posted 3 years ago #

    Thank you songdogtech,

    But i dont have custom theme. i am using default theme.

  4. If at first you don't see your custom templates, the fix is to swtich to any other theme, then switch back to your custom theme.

Topic Closed

This topic has been closed to new replies.

About this Topic