• I have a custom template and added a custom page template with

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

    in that particular .php. I even added the similar code in archive.php.

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

    But I couldn’t get to select page template in writing > page or manage > page.

    Can someone help me on this? Thank you.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Look at the WordPress Default theme’s wp-content/themes/defualt/links.php file for the correct structure of a Page template.

    Thread Starter andythology

    (@andythology)

    well, I do not see what is incorrect in my codes. Unless you are referring to the lines break in between.

    I copied wp-content/themes/default/links.php into my custom theme directory as well, yet Page Template section is not showing for me to choose a template.

    Thread Starter andythology

    (@andythology)

    So, it is a bug or…?

    Thread Starter andythology

    (@andythology)

    with the recent update of Version 2.6.3. This is still unresolved!

    mneil

    (@mneil)

    I have the same problem! Any fixes yet?

    Thread Starter andythology

    (@andythology)

    I usually don’t get reply from the support.

    Mr E

    (@ebiladdress)

    I’m still working with this problem, its painful that I can’t show certain content because it needs a full page width.

    @ebiladdress: can you confirm what version of WP you’re using? Can you post the code from one of your custom page templates in the Pastebin?

    Mr E

    (@ebiladdress)

    esmi,

    using WordPress 2.7.1.

    https://wordpress.pastebin.ca/1395373

    Goal:
    Homepage is static (done)
    Other pages are default template (done)
    One page has extra width with this template (grr)

    Thx

    The problem is right at the top of the custom template file. You forgot to add:

    <?php
    /*
    Template Name: The Name of This Template
    */
    ?>

    Without that comment block, the template won’t show up in your Page template dropdown.

    Mr E

    (@ebiladdress)

    Doh!

    Thanks – been using WP for about two months so only now digging into making my own portions lol

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Can’t select page template / non existance / can’t define’ is closed to new replies.