• Resolved daveslc

    (@daveslc)


    Hi,
    I am trying to add a custom page template in wp 3.8.

    I have the following file: dave_page.php

    with the following code:

    <?php
    /*
    Template Name: Dave Test Page
    */
    ?>
    
    <?php get_header(); ?>
    
    etc...

    The file won’t show up in the editor window, nor does it appear in the dropdown.
    Yet, when I do the same with WP 3.5.1, it shows up just fine.
    I have tried modifying permission (even tried 0777 for a moment), but no dice.

    The file is in the active theme directory in both instances.

    Is there something in WP 3.8 that needs to be done differently?

Viewing 3 replies - 46 through 48 (of 48 total)
  • When searching for solution to a similar problem, this threat came up. Luckily I managed to find a solution. It might help others.

    Issue/problem/error
    In Dashboard I had no Template drop down. When checking Themes it was broken.

    Solution
    Since I was developing a version 2 of an existing live website, I had renamed the css filename to style-v2.css and made the changes to the header. That broke my Theme and resulted in not having the Template drop down.

    Conclusion: Never rename style.css and remember what you read in the Codex :-).

    I have a similar problem, but it’s only limited to my home page!

    I have a lot of custom templates working perfectly on all pages except the home page. When I try to apply custom template to the home page – it always loads the index.php file.

    Any ideas about this?

    P.S. – I am new here and it’s my first post, so if I missed the answer somewhere – please provide the correct link and don’t bite my head off ?? at least not yet ??

    Hello friends, One way I fixed this issue is I actually disabled my theme, then when I tried to re-enable the theme, it said the theme was broken. So I went into the stylesheet and deleted the “template: sitename.com” thing, I was able to reactive my theme and then it worked! i was able to use my page templates. Cool story. Hope this helped. If it did, hit me back so we can both cheer in joy. cheers mate.

Viewing 3 replies - 46 through 48 (of 48 total)
  • The topic ‘Custom Page Template not working in WP 3.8’ is closed to new replies.