• Resolved Raymond Leiter

    (@rayleiter)


    I have a custom church website running via wp on my laptop and my server.
    They used to work the same. Recently, I needed to make changes to the prod. site, so I began with my laptop and got things working the way I wanted (it still does-using ‘wamp’ in Win7 HP SP1). When I finished with the changes on the laptop and moved them to the server, for awhile, it worked! Now the server doesn’t work the same. I have a static front page called ‘homepage.php’ which works on the laptop but, on the server, wp insists on running ‘page.php’ or if that isn’t available, it runs ‘index.php’! I can’t figure out why it runs ‘homepage.php’, as it should, on the laptop, but instead runs ‘page.php’ on the server. I even copied all the ‘.php’ files from the laptop to the server, thinking that would solve it — NO LUCK! IS IT A CONFIGURATION ISSUE OR WHAT? SEE URL: https://www.slatehillmennonite.org

Viewing 4 replies - 1 through 4 (of 4 total)
  • WordPress has a specific template sequence that it will use for the front page, depending on how you setup WordPress:

    1. front-page.php – Used for both Your latest posts or A static page as set in the Front page displays section of Settings → Reading
    2. Page display rules – When Front page is set in the Front page displays section of Settings → Reading and front-page.php is not present
    3. Home Page display rules – When Posts page is set in the Front page displays section of Settings → Reading

    For more information: https://codex.www.ads-software.com/Template_Hierarchy#Front_Page_display

    The fastest solution would be to use the correct file name. Or, if this template can be used for interior pages, too, assign the page template to the static page.

    Thread Starter Raymond Leiter

    (@rayleiter)

    On the “Reading Settings” page of the admin interface, I have “Home” specified as the Front page static page.

    In the “Edit Page” of the “Home” page, the “Template” specified in the “Page Attributes” section, had “Default Template” instead of the name it should have had.

    I have no idea how it got changed as I rarely ever visit that portion of the admin interface.

    Of course, when I discovered it, by comparing my local site with the server site, I changed it and IT WORKED!

    Thanks for your reply.
    Ray

    That’s great to hear!

    If you have a moment, it would also be great if you could mark the thread as resolved to help out the moderators and other volunteers.

    Thread Starter Raymond Leiter

    (@rayleiter)

    Thanks Chris.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP runs "page.php" rather than my "homepage.php"’ is closed to new replies.