WordPress.org

Ready to get started?Download WordPress

Forums

Oh Wow! Interesting.... Question About Template.... (3 posts)

  1. mooapo
    Member
    Posted 1 year ago #

    Hi !

    I have a question about an issue with an Custom Template. I had created one, and I created a new PHP File, called in home.php. Then when I refreshed my Home Page the new home.php was showing, this even without going into the Dashboard and going into All Pages and Declaring a Template to override the Default Home Page. Odd. I didn't even have to Declare the New Custom Template, it did it all by itself.

    But note, I declared it anyways.

    Can someone tell me why this happened????

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Look at this resource which explains about home.php
    http://codex.wordpress.org/Template_Hierarchy#Examples

    ↓↓

  3. alchymyth
    Forum Moderator
    Posted 1 year ago #

    home.php is one of the template file names reserved in the template hierarchy:

    http://codex.wordpress.org/Template_Hierarchy

Topic Closed

This topic has been closed to new replies.

About this Topic