If you look here [is_home vs is_front_page] you’ll see that is_front_page()
is true regardless of what the homepage is set to in the WordPress settings. This means that if you don’t plan on releasing this publicly (i.e. short-run usage) then just having a front-page.php
should suffice. is_home()
is set based on your blogs page (which may or may not be the homepage, depending on whats set in WordPress Settings)
Also, here’s a link to the hierarchy of which templates are chosen under what conditions: Template Hierarchy
Related Posts:
- When to use is_home() vs is_front_page()?
- How does WordPress decide what template to use as frontpage
- Disable front-page.php template
- Theme Development -> Specific Homepage
- Confused by the behaviour of “front page” / “home” templates
- 1 post per category on homepage and counting those posts
- 3 x 3 grid of posts on the home page
- What’s the difference between home.php and index.php?
- Custom single template for a specific category
- How to move page templates to custom folder?
- Is it possible to manipulate the list of page templates?
- Different wordpress 404 template for different post type [duplicate]
- How can I get wp_head() as a string instead of echoing it?
- How do I show sticky posts on a static front page that also contains content?
- Why does my short code get executed before other content?
- Authentication / login mechanism (non wp-admin)
- Retrieve the template directory URI via global or get_template_directory_uri() every time?
- How can I see what template parts are being called for rendering the viewable page?
- Add a preview to a WordPress Control Panel
- Add a #hash to the links in my custom menu
- How to Handle CSS for Multiple Header header.php Files?
- How to load different CSS in different Header?
- Static Front Page problem
- Returning Variables back into a template
- Can not Remove Archives and Meta from Sidebar
- Set front page as static page [closed]
- How to override BuddyPress 3.0 bp-nouveau theme files?
- Setting hero/splash section as a blog post
- Where is the correct place(s) in twentysixteen’s header.php to add a Google webfont?
- How to retrieve an image from a post and display it before excerpt of a post? [duplicate]
- Any tag pagination page (except the 1st page) loads index.php template instead of tag.php
- Adding “latest from the blog” to the homepage
- how can I remove the sidebar from my wp homepage [closed]
- New template, where to place CSS?
- get_query_var() and permalinks
- Toggle Sidebar Display
- Add theme templates for child categories into the template hierarchy
- Move theme templates to subfolder without losing page associations
- Where can I access my custom page template?
- Theme development question regarding layouts
- Why are theme templates organized as multiple point of entry PHP files instead of reusing your theme’s index.php?
- WordPress Theme Development: How to redirect templates the right way?
- How do I create a custom partial / template?
- Set a static front-page as a landing page programmatically
- Load child template based on parent
- create-guten-block in wordpress theme?
- Override template file i subfolders
- Single Page theme [closed]
- Displaying recent post excerpts on static front page
- Showing a list of posts when homepage is custom
- Do i need to keep all the default WP templates files in a theme?
- How can I detect hierarchal relationships beyond children (grandchild, great-grandchild, etc)?
- how to display search term in the template full site editor
- Sort wp_query by sum of two meta fields
- How to override p2 breathe theme plugin in content template file?
- What can I use for small text when converting to WordPress?
- How to Find the Page the Front Page is Using?
- Where to place template files?
- How can I conditionally show different home page templates based on whether or not the user is logged in?
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- How to set wp_options in functions.php for removeing the Default Front Page
- Replace single_template filter with what for default posts?
- Need help with adding templates (archives and sitemap) to WordPress child theme
- Template for landing pages
- Unique design inside a specific category’s url
- How to seperate static phrases from template files in custom theme?
- Broken theme, template is missing
- How to add menù section to my WordPress template?
- Post and page content not displaying in search results
- Why still output /wp-content/themes/twentynineteen?
- How do I put my frontpage featured image in a page template for home.php?
- What is the need for the static front page [closed]
- What is the best way to build home pages with a lot of sections for distributable themes [closed]
- Templates dropdown not appearing using _s theme (underscores)
- Shortcode call not working in WP Template
- Create theme for mobile phones and tablets only?
- add jquery file if a certain page is included
- How to create a WP theme that use BootStrap? [closed]
- How to link to the page displayed by home.php?
- Under theme folder, what’s sequence of action for index.php, page.php, single.php?
- Exclude function from homepage only?
- Cart displayed above header
- How to Modify WP_Includes/blocks/latest_posts.php
- How to implement pagination in category.php template
- Custom Static Page to Display Blog Posts in Excerpt Non-Singular Form (is_singular not working?)
- Using wp_add_inline_style Inside a Template File
- which template should I use for single category post?
- Should I use template files or just use conditional tags in index.php?
- Display content on Single page
- Create a variable with string, array or multiple values
- Using require_once for parent-directory not working but is working in sub-directories
- How can I fix the even/odd child classes comments so that the comments are unaffected by the top-level even/odd?
- Problem with multiple menus in theme
- Enable WP to accept standard jQuery code embeding between the tags [duplicate]
- How can I change the title of the Home link in the navigation bar?
- Allow users to edit home page from WordPress (home.php problems)
- How customizable is a self-hosted WordPress blog compared to a Blogger blog?
- What is the point of using the front-page.php template? [closed]
- Meaning of “if ( is_home() && ! is_front_page() )” snippet?
- What is the point of using archive.php instead of index.php?