Index.php is loading before Home.php
-
This normally isn’t a problem since I can use is_home() to make index.php display the correct content, but I try my best to adhere to standards, so I created a home.php template to follow the Template Hierarchy.
The site is using WordPress as its CMS, not just a blogging tool, so the instance is installed to the root of the host; the URL https://www.mysitename.com/ will send you directly to the WordPress instance.
What happens in my case is that index.php is being called before home.php; is home.php only called first if the WordPress instance is installed to a sub-directory (https://www.mysitename.com/wp/)?
I do not have a static page set for the site.
This isn’t going to stop development, but I would like to adhere to the Template Hierarchy to future-proof the site against changes to the template structure.
Any advice would be helpful, so thank you in advance.
- The topic ‘Index.php is loading before Home.php’ is closed to new replies.