• Hi. Like the title said, I need to “pull in” an external HTML file into a Page. The content of the HTML file is just a simple table with pricing for various products. I’ve seen the safeInclude plugin but I can’t seem to get it to work. I’ve followed the instructions in the readme very carefully and it doesn’t display any content from the file.

    Has anyone here used this plugin successfully and if so, do you have an example of the file you’re pulling into the page that I can look at to make sure mine is setup correctly?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Why not create a Page template and include the file there?

    Thread Starter mattybinks

    (@mattybinks)

    Can you please explain this? Are you referring to the include virtual code like this?

    <!–#include virtual=”insertthisfile.html” –>

    Don’t forget you are using only PHP files: all the WP files are .php. So, you’ll need the “include” function of the PHP, but actually it works in a similar way like the shtml.

    <?php include ('path/to/the/file.html'); ?> – or something like that… I am not a coder, I always have to find a working example and copy from there ??

    Thread Starter mattybinks

    (@mattybinks)

    sorry, all i needed to do was use the html here method and it displays in the post.

    takuya

    (@takuya)

    Is there any other ways to do the same other than this?

    <?php include ('path/to/the/file.html'); ?>

    I need to keep the wp rich editor available, although I need to call an external content.

    And when you use this php function, the external html file should only have <body> part, am I correct?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Inserting external HTML into Page’ is closed to new replies.