Title: include command not working?
Last modified: November 1, 2022

---

# include command not working?

 *  Resolved [dl1mgb](https://wordpress.org/support/users/dl1mgb/)
 * (@dl1mgb)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/include-command-not-working/)
 * Hello, I tried to include external HTML files in a snippet. But it seems it doesn’t
   work. Is there a way to get include working or is it disabled for whatever reason?
 * P.S.: I tried to search in this forum, but even when I search for “snippet”, 
   there are no results. Seems the search function is broken…

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/include-command-not-working/#post-16155514)
 * Hi [@dl1mgb](https://wordpress.org/support/users/dl1mgb/),
 * It depends on the code you are using to include the external file. I would generally
   advise against including external files to avoid potential issues. If you can
   share the code you are trying to use to include an external file that should 
   make it easier to debug.
 *  Thread Starter [dl1mgb](https://wordpress.org/support/users/dl1mgb/)
 * (@dl1mgb)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/include-command-not-working/#post-16155549)
 * Hi Mircea,
 * after some testing and googling, I found the solution. include only allows internal
   links and not “external” links with [http://&#8230](http://&#8230); though it
   is on the same server.
 * Problem solved.
 * Best regards,
    Chris

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘include command not working?’ is closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dl1mgb](https://wordpress.org/support/users/dl1mgb/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/include-command-not-working/#post-16155549)
 * Status: resolved