Title: Inserting external HTML into Page
Last modified: August 18, 2016

---

# Inserting external HTML into Page

 *  [mattybinks](https://wordpress.org/support/users/mattybinks/)
 * (@mattybinks)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/inserting-external-html-into-page/)
 * 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)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/inserting-external-html-into-page/#post-365781)
 * Why not create a Page template and include the file there?
 *  Thread Starter [mattybinks](https://wordpress.org/support/users/mattybinks/)
 * (@mattybinks)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/inserting-external-html-into-page/#post-365801)
 * Can you please explain this? Are you referring to the include virtual code like
   this?
 * <!–#include virtual=”insertthisfile.html” –>
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/inserting-external-html-into-page/#post-365803)
 * 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](https://wordpress.org/support/users/mattybinks/)
 * (@mattybinks)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/inserting-external-html-into-page/#post-365810)
 * sorry, all i needed to do was use the `html here` method and it displays in the
   post.
 *  [takuya](https://wordpress.org/support/users/takuya/)
 * (@takuya)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/inserting-external-html-into-page/#post-366425)
 * 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.

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [takuya](https://wordpress.org/support/users/takuya/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/inserting-external-html-into-page/#post-366425)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
