• Hello.

    I’ve just installed WordPress 2.5 as part of a client development. Everything is going find except I can’t find where to select ‘Page Templates’?!

    Looking at other posts I know is suppose to appear between Page Parent and Page Order at the bottom of the Page editing page, but it just ain’t there?

    I’ve created the page and inserted the necessary Tags…

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

    But still no joy.

    Anyone got any ideas?

Viewing 15 replies - 31 through 45 (of 56 total)
  • I got the same problem also but after careful explanation form the moderator, it is clear that we should put the code at the top of the file exactly like this:

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

    not like this:

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

    or this:

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

    Just make sure there are exactly 5 line of PHP nifty..
    Cheers

    Naming the file exactly the same as the template name worked for me.

    WordPress newbie here, but PHP vet, I just started playing with WordPress so my 1st version was 2.5, I made the test.php file mentioned here, it does show up in my list of page templates ??

    P.S. I wanted to love MODx, but I’ve been having way too much fun with WP, and it is better documented and supported !! Plus my clients will not grok MODx, but they will LOVE WPs simple admin interface…

    Problem solved. thank you all. no need thinking about coding cause I’m not the expert. Just switch to default and back to previous theme. Show up!

    Hi Guys –

    When you make these templates, apart from the 5 lines starting at the top
    <?php
    /*
    Template Name: My Template name
    */
    ?>

    also make sure you are saving the template file with the correct line endings. I made this mistake in TextMate on OS X – my preferences were set to save as ‘CR (Max OS Classic)’ – when in fact it should have been ‘LF’ which is more universal.

    once i opened all my templates and re-saved them, everything reverted back to ok.

    Note – you may need to swap theme to default and then back again just to reset things.

    Hope this helps.

    Something I noticed earlier was that someone called their page template

    page test.php

    I don’t know much about php but with html files you cannot have a space in the name, maybe that is why it didn’t show up.

    I have never done this procedure before, but I did it earlier this afternoon, I’m in France so it is already evening, and it took a little figuring out but it worked fine for me.

    If anyone is still reading this I have a related problem.

    I made my page fine, but I wanted this custom page not to have a sidebar so I just deleted the line of code in the custom page template calling the sidebar, I thought I was so clever, well the footer doesn’t want to stay on the bottom anymore.

    Do I have to modify then the css and make a separate custom css file for this too? Please just tell me I did something stupid and it can be fixed easily.

    What I am trying to do is have a bunch of custom pages that will contain only text and affiliate links, sort of like landing pages, that do not have a sidebar. I want the text and images and links to spread out across the whole page. They also are set to private so they don’t display in the menu on my main page. Can someone take a look at what is happening and give me some advice?

    https://francetales.com/testing

    Look at the home page
    https://francetales.com
    to see where the footer should fall

    Thanks for the help.

    I started to pull out hair on this also… My fix was changing the permission on the theme folder itself to 755. The files were at 644.
    So….
    wp-content/themes/default….
    wp-content/themes/bright….
    wp-content/themes/dark….
    wp-content/themes/something-borrowed….

    default,bright,dark,something-borrowed were all put to 755 and my page templates showed up nicely in the lower area under Advanced Options.

    Hope this helps someone!

    Definite solution for 2.5.1, just implemented:
    – add correct comment as detailed earlier in this thread.
    – ensure at least one Page template present in folder.
    – ensure rights set to 775
    – switch to default theme and then back again.

    After doing these things, the pulldown was visible, where it should be.

    this was really torking me off until i found this thread. switching the themes back and forth is what did the trick for me. thanks for the help.

    Switching themes temporarily, worked for me too..

    When you get weirdness like that, you can sometimes blame your internet service provider. If you’ve cleared your browser’s cache, and closed and reopened the browser, and you still have problems, go to the command prompt (in Windows, Start, Run, Cmd), and type this:
    ipconfig /flushdns

    That usually clears everything up.

    signal_oil_and_gas_company

    (@signal_oil_and_gas_company)

    Hmm, it should work with details these guys gave you.
    Try everything from the begining.

    Signal Oil and Gas

    In my case switching themes worked, because in default theme there are two page templates, but in my theme there was only one (page) template.

    When I created additional templates, also “Page template” field appeared.

    I looks like WP doesn’t show this option if there is only one template in the theme. This one is chosen by default…

    I’ve tried all these suggestions, but nothing is working for me… how can I diagnose the problem?

    OK – I think I figured it out in my case… I had a plug-in called Role Scoper that seemed to be killing the Page Template option. Not sure why, but it does.

Viewing 15 replies - 31 through 45 (of 56 total)
  • The topic ‘Page Templates in WordPress 2.5?!’ is closed to new replies.