This plugin is outdated and might not be supported anymore
Custom HTML/PHP Post Templates

Custom HTML/PHP Post Templates

Details
View on WordPress

This plugin allows you to use any HTML or PHP file as the template for any page or post.

Simply upload the file and select it.
You can upload custom js and css files into the media library and link to them from the HTML file.

Options:

  • Overwrite All: You overwrite the entire theme and use your custom file
  • Overwrite Content: Keeps the header, footer, sidebar, e.t.c. Simply overwrites the body of the page or post
  • Above Content: Your custom content is simply added to the top of the page content
  • Below Content: You custom content is placed just beneath the page content.

Adding support for custom post types

By default the pulugin works with pages and posts, however, go to the settings to enable it on any other registered post type.

use the hppp_post_types filter to add more post types.

Like this:

    public function post_type_modify ($post_types) {
        $post_types[] = 'custom_post_type';
        return $post_types;
    }

    add_filter( 'hppp_post_types', 'post_type_modify' );

Details

Plugin code:
html-php-pages-and-posts
Plugin version:
2.0.0
Outdated:
Yes
WP version:
3.0.1 or higher
PHP version:
or higher
Test up to WP version:
4.8.25
Total installations:
60
Last updated:
2017-07-09
Rating:
Times rated:
2
custom-pages
custom-posts
custom-templates
html
php