That’s because homepage.php isn’t recognized by WordPress.
The correct file to use is front-page.php.
Related Posts:
- Custom Post Type Single Page and Archive Page redirects to Home Page
- Searching multiple custom post types and pages
- Taxonomy, Terms, and Template Files
- Templates for Custom Post Types and Custom Taxonomies
- Get page by template?
- Custom Post Type with Nested Taxonomy and Template Files
- Clean URL permalink for custom post type
- Share parent path between Custom Post Types and Pages?
- Trying to edit the single page from a Custom Post
- How do I fix permalinks for custom post types that has the same slug as a page?
- Making a custom help center page
- Assign same parrent Page to pages AND custom post types
- Static page determines as home, but it is not
- Custom taxonomy returns 404
- Flush Rewrite Rules when new site is created on network
- Template files for Custom Post Type and Taxonomy
- How to Create Template File for Parent Page of Custom Post Type
- make permalink go to a custom single.php file
- Custom permalink structure for remote content pages
- Under What Conditions Can I name my CPT the same as my CPT Page?
- custom post creation on front page – on submit a search is done
- How to setup different permlalinks for posts and pages?
- Tag template not returning posts [closed]
- One Custom Post Type two different Templates
- Add custom template ‘sub-page’ to Custom Post type?
- Custom post type defaults to index.php for archive page
- How to stop a permalink redirecting to a page whit same slug but different permalink
- How to make “single post” permalink maintain it’s sub-page structure
- Why did permalinks setting affect the pages?
- Custom Homepage As Single Page or Custom Post Type?
- Storing postID in session variable to query database when visitor on custom template page
- query_post while (have post) get_template_part()?
- “regular” pages not found after changing permalink
- Using custom post types within a section of a template
- Custom Post Types and 404 Pages
- PHP Button Custom link [closed]
- add category name to permalinks on product page /category-name/product-name
- Use menus with anchors
- Custom Post Type permalink shows wrong page: homepage/index.php
- Get term name and term parent into custom post type permalink
- Query with no terms uses index.php template instead of archive.php
- WordPress add_permastruct unwanted matches
- Rewrite rules for custom posts types
- is_home() returns TRUE on page template
- Permalink structure by Post Meta value
- Does WordPress consider a post name unique if that same post name is in multiple Post Types?
- Create template for taxonomy results limited by Custom Post Type
- Why doesn’t a custom post type permalink ever hit index.php
- Template for custom post with custom taxonomy
- WordPress Custom Post Type Children Template
- Allow non-logged in users to see a future post after clicking on a list of future posts
- How to hook custom taxonomies to custom post types and make the permalinks work?
- custom post type parsed as attachment
- Getting template_include to work when allow_url_include is off?
- Exclude pages in archives results
- Custom post type content using custom fields without template
- 404 Issue w/ Custom Post Type – using Meta for Permalink rewrite
- WordPress Custom Post Type Repeated 404 Errors
- Child post with numeric only slug keeps redirecting to parent
- How to change custom post type permalink structure
- Make parts of your wordpress website completely built with data from external APIs?
- Custom post type url with category
- Help with Elementor Pagination CPT archive 404 problem
- 2 Templates 1 custom post type according url
- Adding custom post category slug in permalink causes 404 error for pages and posts
- How can I use get_post_meta with add_rewrite_rule to build custom permalinks?
- Allow post/page hierarchy across different post types?
- custom home page and custom index page?
- Permalink for a custom post type isn’t working and I don’t know why
- Can’t get custom rewrite tag, query var, permastruct (permalink structure), and rewrite rule to work properly together
- Add custom post type settings to wordress default posts
- How Can I Change the Custom Post Type Slug to the Taxonomy Slug in the URL?
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- WordPress Custom Post Type Permalinks dynamic term slugs
- Trouble with CPT Child 404
- How to have the same url structure for both a CPT and a Taxonomy?
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- create a subcatagory for a custom post type and out put url as posttype/subcategory/item
- Database to page routing API?
- How can achieve this permalink perfectly? domain.com/%category%/%post-name%
- custom-taxonomy/post_name instead of the default post_type/post_name
- Show custom post archive when custom post not specified
- Show custom post type relationships by taxonomy
- Custom taxonomy and custom post type – wrong permalinks and template
- Can’t remove front from permalinks for custom taxonomy category page
- Can I override a CPT template on a per post basis with Gutenberg block editor?
- WordPress custom post type permalink rewrite shows page not found
- How to set a CPT to have a page as a parent, then rewrite urls accordingly?
- Completely remove custom post type permalinks (“One Page” website)
- Using taxonomy term in CPT permalink – Pages 404’s
- Removing custom post type slug from URL
- How to add rewrite rule to custom post type with parent in url with cpt ui?
- Custom post type as home page with custom url
- Customize Custom Post Type URL
- Allow Static Page Load Dynamic Child Pages
- Create a custom php page and load it at a specific slug
- URL rewrite add author as base
- Remove CPT name from permalink but add %category% instead
- Permalinks /country/city/cpt/postname/
- Custom Permalink to remove category word , keeping posts permalink with date?