{"id":53683,"date":"2016-12-22T04:08:35","date_gmt":"2016-12-22T04:08:35","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/html-php-pages-and-posts\/"},"modified":"2017-07-09T19:42:12","modified_gmt":"2017-07-09T19:42:12","slug":"html-php-pages-and-posts","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/html-php-pages-and-posts\/","author":15233564,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0.0","stable_tag":"2.0.0","tested":"4.8.28","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Custom HTML\/PHP Post Templates","header_author":"Stephen Afam-Osemene","header_description":"","assets_banners_color":"","last_updated":"2017-07-09 19:42:12","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/stephenafamo.com","header_plugin_uri":"http:\/\/www.github.com\/stephenafamo\/html-php-pages-and-posts","header_author_uri":"https:\/\/www.stephenafamo.com\/","rating":5,"author_block_rating":0,"active_installs":70,"downloads":8308,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0","2.0.0","2.0.1","2.0.2","2.0.3"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[25961,12260,22169,246,662],"plugin_category":[],"plugin_contributors":[130779],"plugin_business_model":[],"class_list":["post-53683","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-pages","plugin_tags-custom-posts","plugin_tags-custom-templates","plugin_tags-html","plugin_tags-php","plugin_contributors-stephenafamo","plugin_committers-stephenafamo"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/html-php-pages-and-posts.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin allows you to use any HTML or PHP file as the template for any page or post.<\/p>\n\n<p>Simply upload the file and select it. \nYou can upload custom js and css files into the media library and link to them from the HTML file.<\/p>\n\n<p>Options:<\/p>\n\n<ul>\n<li>Overwrite All: You overwrite the entire theme and use your custom file<\/li>\n<li>Overwrite Content: Keeps the header, footer, sidebar, e.t.c. Simply overwrites the body of the page or post<\/li>\n<li>Above Content: Your custom content is simply added to the top of the page content<\/li>\n<li>Below Content: You custom content is placed just beneath the page content.<\/li>\n<\/ul>\n\n<h4>Adding support for custom post types<\/h4>\n\n<p>By default the pulugin works with pages and posts, however, go to the settings to enable it on any other registered post type.<\/p>\n\n<p>use the <code>hppp_post_types<\/code> filter to add more post types.<\/p>\n\n<p>Like this:<\/p>\n\n<pre><code>    public function post_type_modify ($post_types) {\n        $post_types[] = 'custom_post_type';\n        return $post_types;\n    }\n\n    add_filter( 'hppp_post_types', 'post_type_modify' );\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>html-php-pages-and-posts<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Upload <code>html-php-pages-and-posts<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol><\/dd>\n<dt>What about external JS and CSS files?<\/dt>\n<dd><p>You can upload it all into the media library. Simply reference them properly in the html file. \ne.g. <code>&lt;link rel='stylesheet' href='http:\/\/example.com\/wp-content\/2017\/01\/my_custom_stylesheet.css' type='text\/css' \/&gt;<\/code><\/p><\/dd>\n<dt>Will template tags work in my custom templates?<\/dt>\n<dd><p>Yes.\nAll wordpress functions, and any installed plugin function will work if called properly<\/p><\/dd>\n<dt>What post types will this work with?<\/dt>\n<dd><p>By default, it can only be used by on pages and posts, but you can add any other post type by hooking into the <code>hppp_post_types<\/code> filter.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Add settings page to enable support for any registered post type<\/li>\n<li>Allow users to set default template for any registered post type<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Add filter hook to modify supported post_types<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First release<\/li>\n<\/ul>","raw_excerpt":"Use your HTML or PHP files for any page or post.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/53683","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=53683"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/stephenafamo"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=53683"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=53683"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=53683"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=53683"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=53683"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=53683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}