You can use the template_include
hook to accomplish this.
Add this to your active theme’s functions.php
file (or create a plugin).
add_filter( 'template_include', 'wpse376643_load_html_page' );
function wpse376643_load_html_page( $template ) {
if ( is_page( 'the-page' ) ) {
// You'll have to use the server path to your index.html file.
$template="/path/to/your/content/oct2020/index.html";
}
return $template;
}
Related Posts:
- page_template toggle between 2 templates + 2 permalinks for same post
- For custom templates, is it better to use `template_include` or `type_template`?
- WordPress archive index page
- How To make Custom page of every Category
- Why does a custom php code inside a custom template not get executed?
- Displaying Child Page’s Information
- Redirect Every Instance of The Author Template Pages to Custom Author Pages
- Allow arbitrary text after page URL
- Single page template
- Redirection after Category Change for Custom Structure
- WordPress Custom File Permalink
- List top 5 authors with most posts
- How can I create a permalink with two categories, with the order based on the parent category?
- Changing permalink name redirects to another template?
- Create a url structure for my blogs based on categories and sub-cats
- Is there a way to by-pass the pagination function on one custom template?
- Custom URL redirect in WP
- Woocommerce product permalink not working
- Create page as a file in my theme?
- Don’t change Custom Post Type slug to unique value
- How to create custom search page
- Add or Create Custom Structure Tags to Permalink
- Editing a post template
- How to get the current category with custom posts
- How do I create a root link in wordpress to a PDF file?
- Restrict content access to logged in users
- How to add custom ‘layout’ buttons to wordpress editor?
- How to create custom layouts and static pages in themes for clients
- Showing different pages depending on a cookie value
- Custom Content Page
- Create a Page template selector page
- Custom permalink structure for remote content pages
- Creating custom page template
- How to create a custom WordPress front page
- Force WordPress to load a specific template
- Custom Same Page Search
- change top banner content on specific page
- How to set up conditionals in page templates?
- Dynamic Sidebars based on page name
- templates with page teasers Or Featured Items
- add_rewrite_rule and template redirect not working
- Translate custom template with WPML
- How do I change my permalink structure to a custom structure on an established blog?
- Remove Sidebars from page
- getting a 404 page for all pages except home. possibly permalinks
- Create Miltiple Category Base
- How to get Previous Visited Page Information
- why won’t my custom css load with the enqueue method or any other method?
- Product page not found if product data is set Appointment Service
- Block direct access to thank you pages
- Adding a custom field to a slug
- Custom post type defaults to index.php for archive page
- Conflict between Yoast SEO and my custom theme
- Page with some post value id showing page not found
- How to add a template – so that i can choose a different menu for some pages
- how can custom permalink structure use for specify custom post type
- URL issue after setting up Custom Structure in Settings >> Permalinks
- How can I delete the word `Category:` from page titles? [duplicate]
- How can I add category variable inside posts?
- Display a custom 404 page without a redirect
- How to use the same custom page template to iframe multiple urls with entry of new url entered from backend
- Custom Route Returns 301/Passing Variable from Input
- Create page when a new site in multisite network is created?
- wordpress custom posts page not showing
- Custom permalink structure for posts in certain categories
- How to add rewrite rule for product compare page?
- How do I target this page specifically?
- How to use a custom playlist template:
- How to add a static text at end of a wordpress permalink
- Combine Categories & Custom Taxonomy
- Structure of post types for TV Shows and episodes
- Still desperate about multiple TinyMCEs in widgets – is there any good solution to this yet?
- Custom stylesheet not loading
- Smarter Document Management links between three WordPress sites sought
- permalink of word press in htacess
- Getting a jQuery library to work in WordPress & Avada
- Use another theme template in my theme
- Submit form to another template (ugly url)
- Taxonomy template by post type
- Best way to create a page outside of the pages list
- For one linked image per post, override that link with a permalink when on the main page
- I need to display post related info
- Template setting is not saving in wordpress
- How to keep the /blog slug even in single post slug
- Adding pages to the Admin panel
- Make Terms Under Custom Taxonomy Use Specific Single.php Template
- Custom single page based on which custom page template is selected
- Setting Custom WordPress “Posts page” AS “Front page”
- Permalink / sub-template issue
- Page template with custom html fields inside a content
- Adding page Title in a custom coded page
- Adding css and js to a blank page created with custom template
- Modifying a local template
- Show post content in two different places without redirect
- Custom template not working for existing pages [closed]
- use another theme for just one page
- How to apply styles to the custom page template
- Redirect all pages to the custom login page except for the registration page
- Permalink Listing WordPress
- Create a page for each database table entries