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]
- Can I assign a template to a custom post type?
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Using Templates with Custom Post Type UI
- Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
- Can you have two CPTs with the same permalink structure?
- Custom templates for posts like for pages: page-{id} vs single-{id}
- Posts in Multiple Columns and Rows with one single loop
- Custom taxonomy & post slug permalink
- Display different gutenberg template from selected post attributes
- how to use two permalinks for one custom post type
- Custom Taxonomy List links being re-written
- Custom Permalink Tag breaks Pagination
- Create second custom 404 page for selected post type
- Custom post type hierarchical permalinks not behaving as expected for parent/child pages
- Custom post type and taxonomy permalinks – Structure
- Custom Post Type and Custom Taxonomy Permalinks
- Create Template for Custom Post Type same like for Page
- Change Permalink Structure for Tag.php template
- Create custom PAGE with register_post_type
- Remove post type slug of all post types from permalinks
- Add archive slug to default post post type
- Custom Post type and permalink settings
- Page vs Custom Post Types Differences/Issues
- WordPress add_permastruct unwanted matches
- Make parts of your wordpress website completely built with data from external APIs?
- Custom taxonomy and custom post type – wrong permalinks and template
- Can I override a CPT template on a per post basis with Gutenberg block editor?
- Pretty URLs and custom post types
- Top Level pages in wordpress giving 404, but child pages working fine
- Lost of query parameter when using permalink
- Is it possible to show multiple (custom) post types at the wp homepage only by using pluging code?
- the_content(); of custom post type treated as an array or object
- Conflict between wp_list_pages and get_posts – list pages not displaying
- Post URL based on Custom Post Types variables
- Dynamic CPT permalink structure based on ACF field value
- Custom permalink not working and showing 404 page not error
- get the permalink never return with empty value
- Custom post type is using the index.php template
- Redirect User From Registration Page To CPT (profile page) with custom url
- Template code to split a post and print a custom field?
- How to create a template to show child terms of a MAIN taxonomy
- Custom Post Types,Permalink and Heirarchy
- add_query_arg() for custom post type on all visible links
- WordPress custom posts and permalinks
- CPT permalinks Rewrite
- Load info from customposttype into template page
- How to change URL structure for custom post type in wordpress? Custom taxonomy + custom Post name [duplicate]
- How to assign post to category
- Allow duplicate permalinks slugs for custom posts by different authors
- Custom taxonomy with custom post type template not showing
- Creating custom post type relationships
- Include template if a post is a single product
- Change wordpress url permalink structure to show authors posts
- How to decouple custom post types components from template?
- Custom Post Type + Category archive
- How to retrieve the permalink for a specific (custom) term?
- Is it possible to make one of two custom fields in Custom Post Type UI Required but not the other?
- Listing all custom post types using a specific term on the said term’s template page, in groups
- Choose custom post type template by category
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- using a template for more then 1 page
- Custom post type is_singular condtional not working when managing sidebar display
- Custom post type with custom parent prefix slug