WordPress Template Hierarchy:
You should read about WordPress template hierarchy.
This question also has some related answers.
Typical Case:
In your case, the most likely scenario is:
The explainer had set the latest posts as the home page (this is the default option) and you have set a static front page as home page. Since his is blog archive, it’s being loaded by
index.php
and yours is a page, so that’s being loaded bypage.php
.
This is just a typical scenario, but there may be other settings that are affecting which template file is being loaded.
Changing the default setting:
If the above is your scenario, then changing the following setting from WordPress wp-admin -> Settings -> Reading -> Your latest posts
(then Save Changes
) will make it the same for you and the explainer. Check the screenshot below:
Related Posts:
- is_front_page and is_home are not working in page.php
- How to show a post single post in page template
- Conditional get template part
- I want to duplicate homepage for all my pages
- Page-loop is looping content from custom loops on the same site. How to avoid that?
- My custom template page not loading content inside it?
- How can I load 2 random pages?
- WordPress custom login and register page problem?
- How to detect if some page template has been selected
- Is there a universal slug for static homepage?
- Use page.php for front page
- Using page template as Static Front Page
- What does is_page_template() compare against?
- is_page_template not working
- When is get_template_part() preferable to simply using the template.php files?
- Ways to have multiple front-page.php templates that can be swapped out?
- How to remove all styles for certain page template?
- Simplest way to add a second html editor to the post/page admin?
- Store Page Template Files in a Subfolder
- Add Adsense code in index.php
- Video Background – (php & css) – generating 404 error on page load – WordPress Theme File Structure Help
- How to check if current static page is frontpage from admin plugin
- Removing or Restricting Access to Page Templates for Editor Role
- Created custom post type but selected template not staying selected
- Why is POST’ing to my WP page template producing a 404?
- Can I create a page template, use it once, then hide/remove the option to use it again?
- Are page/post IDs unique across a whole network?
- Adding the Admin Bar to a page with a custom template
- home.php or frontpage (via settings) for theme?
- Can you call a template file without assigning template to a page in the admin panel?
- How can I make WordPress serve homepage to different URL?
- WP Multisite Static Frontpage
- How to display thumbnail and excerpt of a page on homepage?
- How to create a page template that retrieves content from db?
- Change path of the page’s template
- wp_redirect() does not work in custom template file
- Disable front-page.php template
- How to set up a single portfolio page as home page?
- Create a front page template and separate page for posts?
- Excerpts for Pages
- Visual Editor Templates
- Change content of page in child theme using plugin
- Can two custom templates be used to create a single page?
- New to wordpress: would like to have pluggable main page sections [closed]
- Find the page template of the previous page
- How to check if a specific page uses a page template?
- Cant remove line that appears above page content
- style.css doesn’t load on the home page when front-page.php activated (using stock theme)
- How to rewrite title- and meta-description templates for page templates in Yoast Plugin [closed]
- Adding a Menu Page to The Dashboard
- Cleaner way to define multiple variables for is_page_template()
- page shows 404 on form submit
- posts not showing on index.php
- Is it possible to add a child post into the parent page?
- Is it okay to use page template as contact page? [closed]
- Including facebook.php in a wordpress page template?
- Theme Development -> Specific Homepage
- How to build a PDF repository in WordPress
- Page with posts from category doesn’t work
- Why is a renamed custom template file still showing up in the template dropdown menu?
- Page template added via plugin not saved in Gutenberg
- How do I put my frontpage featured image in a page template for home.php?
- Blog page wont use blog-template.php
- Delete post: 2 wp_redirect if pages are different
- The best way to create pages like an ‘about’, ‘contact’ and etc [closed]
- Image not showing on page template in Twenty Fifteen-theme
- Limit page template choice by page title or ID?
- Using conditional statements in place of custom Page templates
- Controlling the Admin panel for page templates
- Page Templates automatically showing index page contents?
- Ability to change homepage on WordPress using API
- Add featured image as post header background image
- Create Page with Pagetemplate and get a post_type_object->template
- WordPress pass url to page template when page does not exist
- Inserting article:tags meta in html head-element, using get tags, no wp_head
- wp_logout() not working after form submission
- Set page title in WordPress with PHP
- How to allow user to select page template from front end?
- Converted HTML5 to WP, How to apply converted classes to new pages (after conversion completed)
- Custom page template displays the archive template
- How to get template link?
- Using a page-template to restrict access based on IP (Frontend)
- Need help in creating splash intro page using custom page template
- Adding secondary featured image for page_for_posts
- What is the best way to create very custom campaign pages?
- WordPress fetches the archive page instead of my custom template
- 3 x 3 grid of posts on the home page
- Custom Forget Password page
- How to make page template with admin able to select NextGen Galleries to be part of the layout?
- Showing sidebar-2 on custom template page
- Background of default template showing instead of the background of custom page template
- Getting a custom area in a theme for dynamic content for page
- Videopress Short Tags not working when pulling page into template
- What is the advantage of using home.php over index.php for the front page
- How to access the so called “Posts page”
- Article Template
- How to wrap image logo in Homepage with H1 tag
- Front end user registration form [closed]
- My homepage’s width has reduced and I can´t fix it [closed]
- How do I update the SEO information on dynamic pages being generated from template_include?