BACK TO DIRECTORY

Custom HTML/PHP Post Templates

by Stephen AfamO

5.0
(2 ratings)

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' );

Plugin Details

Active Installs
60
Total Downloads
8,551
Version
2.0.0
Requires WP
3.0.1
Requires PHP
Tested Up To
4.8.30
Added
2016-12-22
Last Updated
2017-07-09 7:42pm GMT

Ratings

5
2
4
0
3
0
2
0
1
0