• 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 15 replies - 1 through 15 (of 48 total)
  • Same problem here and I’ve done this many times in several different themes. I’m not finding any new documentation regarding custom page templates.

    Thread Starter daveslc

    (@daveslc)

    I have also tried it on 2 different installs of 3.8 and have tried changing active themes, with different themes, logging out and in, clearing the browser cache with no luck.

    Is this a bug in 3.8?

    hey guys had a similar post before but i found why that happened you must put style.css in the main theme file if you put in under any folder but not include in main theme file you’ll not see any template in the backend. it helped me but dont know if it helps you or not.

    good luck with that.

    Hi All,

    Same thing here as described above. Switching themes does not refresh the template dialog box either. The style.css suggestion did not work, but thanks for it anyway.

    I suspect this might be a 3.8 bug. Shame.

    There is no page template bug in WordPress 3.8, so this would appear to be a site-specific issue. On that basis, it would be far better if you all opened your own topics as the cause of this is probably different in each case.

    @esmi If there’s no bug than there’s clearly a new procedure for creating a custom page template. Tell us what you did, specifically, to get this to work on your site.

    I have never had an issue with custom page templates, until 3.8. To this day I can’t get it to work.

    I haven’t changed my process for creating custom page templates since…um… about WP 2.8(?). It still as described in custom page templates.

    Thread Starter daveslc

    (@daveslc)

    I tried two different sites, multiple themes. It doesn’t work.

    Mohsin

    (@mohsindigitalpoin8)

    Hi everyone….!
    use this code
    page-(your-page-name).php .
    template name is not working in wordpress 3.8

    Does the page-name*.php work for anyone? Still can’t create a custom page template.

    If you require assistance then, as per the Forum Welcome, please post your own topic.

    Mohsin

    (@mohsindigitalpoin8)

    if you have about page in your wordpress dashboard .
    create new page in theme page-about.php….
    it working as a Template Name:about in wordpress 3.8

    Please review custom page templates. The file name of a page template does not make the slightest difference. You can call a custom page template wibble.php if you want and it will work.

    Tnx esmi.. got it workin, tnx again for the support.

    Hey folks, does someone find solutions? (to create custom pages in wp 3.8)

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