WordPress.org

Ready to get started?Download WordPress

Forums

Include an html page in a wp post (4 posts)

  1. Marcomail
    Member
    Posted 5 years ago #

    is it possible ?

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    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

  3. LarryElterman
    Member
    Posted 4 years ago #

    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"); ?>

  4. MichaelH
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.