WordPress.org

Support

Support » How-To and Troubleshooting » Include an html page in a wp post

Include an html page in a wp post

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    @esmi

    Forum Moderator

    You can:
    – include standard HTML markup in a post
    – use something like <?php include ('path_to/file.html');?> in a custom template
    – use an iframe

    I can relove it!!!!!

    YES ITS POSSIBLE

    Because I had the same problem and only reloved it after digging around for hours!

    Ok, the post the esmi had above is correct. However, he forgot to mention one very important thing!

    That code will not work unless you unless you install the “EXEC-PHP” plugin so that php code can be executed in your post or page. The php code will not be executed unless you install the plug in.

    Esmi above gave a generalized example. Here is a more specific example of how i used it in my code:

    <?php include(“http://www.lifeandloveinthephilippines.com/myinludefiles/notice.html”); ?>

    Nice solution to the question, “How do I put PHP code in a post”.

    But, the question was “Is it possible to put HTML code in a post” and to do that, a plugin is not needed. As for the include example, note that esmi’s answer also noted “in a custom template”, and again, that would NOT require a plugin such as Exec PHP.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Include an html page in a wp post’ is closed to new replies.