WordPress.org

Forums

[resolved] [closed] WordPress 3.4 Bug - Page Templates (61 posts)

  1. junior89
    Member
    Posted 2 years ago #

    can you please advise the place and process to put this in or were i should find this info.

    thanks in advance

  2. stenioreis
    Member
    Posted 2 years ago #

    Sorry but where do i find this lines to change?

  3. wnnnews
    Member
    Posted 2 years ago #

    We are having similar problem since WP 3.4 upgrade. Can we know where to place correct code in theme editor php pages? Thanks for quick reply.

  4. stenioreis
    Member
    Posted 2 years ago #

    This solution worked for me…. you have to declare the template name on a dedicated row.
    The firts lines of php pages from the theme folder that you loaded

    I mean
    Home/wp-content/themes/YOURTHEME

    From:
    <?php /* Template Name: Enquire / ?>
    To:
    <?php
    /* Template Name: Enquire */
    ?>

    i changed from the theme that works in this way and came back normally.
    whatch out the empty spaces after the php an before of ?>

  5. wnnnews
    Member
    Posted 2 years ago #

    Thanks for your help/ideas

    Unfortunately Home/wp-content/themes/YOURTHEME (with our them put in) goes to a 404 page...

  6. esmi
    Forum Moderator
    Posted 2 years ago #

    You need to replace YOURTHEME with the folder name for your current theme.

  7. wnnnews
    Member
    Posted 2 years ago #

    Hi esmi & thx - Did just try with our folder name to try: [our url]/home/wp-content/themes/wpnewspaper15 and still show 404 on our site

  8. esmi
    Forum Moderator
    Posted 2 years ago #

    What url? We're talking about accessing a theme's folder by Ftp.

  9. wnnnews
    Member
    Posted 2 years ago #

    I'm looking inside cpanel folders/files

  10. wnnnews
    Member
    Posted 2 years ago #

    usually do all editing code via cpanel instead of FTP. Looking at numerous files under our theme / wpnewspaper15 / inside the theme folder... which file does the code need to be inserted into?
    thx again

  11. esmi
    Forum Moderator
    Posted 2 years ago #

    Do you know what a custom Page template is?

  12. wnnnews
    Member
    Posted 2 years ago #

    Hi & thx again. Not sure... are you meaning a custom field for a template? Never have used/done this.

  13. wnnnews
    Member
    Posted 2 years ago #

    We are using one of the Gabfire themes.

  14. esmi
    Forum Moderator
    Posted 2 years ago #

    No - a custom Page template. See custom page template.

  15. esmi
    Forum Moderator
    Posted 2 years ago #

    I'm sorry but as you are using a commercial theme, you need to seek support from the theme's vendors.

  16. wnnnews
    Member
    Posted 2 years ago #

    Should I create a new file (page) for a custom page template inside the wpnewspaper15 folder (I'm still in cpanel)?

  17. wnnnews
    Member
    Posted 2 years ago #

    Yes.. this is a commercial theme / via Gabfire

  18. wnnnews
    Member
    Posted 2 years ago #

    Thx for taking time to try to help.

  19. esmi
    Forum Moderator
    Posted 2 years ago #

    I'm sorry but as you are using a commercial theme, you need to seek support from the theme's vendors.

  20. wnnnews
    Member
    Posted 2 years ago #

    Just sending thanks for the time spent here..

  21. stenioreis
    Member
    Posted 2 years ago #

    wnews, in yourtheme folder you have manY php pages like index.php single.php search.php etc... you have to open them with textedit blocknote or dreamweaver and change the first lines that are written in that way in 3 lines and not in 1line.

  22. Khaled Hakim
    Member
    Posted 2 years ago #

    As stated above, this is how you should declare the Page template name:

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

    Worked like a charm. Thanks for the help!

  23. francisperron
    Member
    Posted 2 years ago #

    Thank you so much troyster you fix work, I was going crazy, you solve my life :)

    <?php
    /* Template Name: TemplateNameHere */
    ?>
  24. Theme 7 dot net
    Member
    Posted 2 years ago #

    I was having the same issue
    <?php
    /* Template Name: TemplateNameHere */
    ?>

    Worked for me as showing the templates in the page attributes dropdown section but they are not updating in the database for me (and therefore not actually changing the page template.

    The Database entry is still default "_wp_page_template default "

    Please help!

  25. simspacetn
    Member
    Posted 2 years ago #

    @troyster that was the trick! Nice find!

  26. apmeyer
    Member
    Posted 2 years ago #

    Simply moving the comment to its own line also worked for me. Thanks all.

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

  27. tylerjacobsdnvs
    Member
    Posted 2 years ago #

    This worked perfect! Thank you!

  28. heartbreakkid58
    Member
    Posted 1 year ago #

    I'm using Crea WP Theme and my pages content are not shown. When I click on the links, page scrolls but content is not showing :(

    Please help me out from that thing :(

  29. esmi
    Forum Moderator
    Posted 1 year ago #

    Why are you using an old copy of WordPress? Were you aware that your site is currently running a very real risk of being hacked. You need to upgrade WordPress asap.

  30. heartbreakkid58
    Member
    Posted 1 year ago #

    @esmi - Bro, I'm using latest version of WordPress and Crea WP version 1.2.1.

Topic Closed

This topic has been closed to new replies.

About this Topic