Title: HG3-Include
Author: ccc666
Published: <strong>2011 年 8 月 3 日</strong>
Last modified: 2011 年 11 月 21 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/hg3-include.svg)

# HG3-Include

 由 [ccc666](https://profiles.wordpress.org/ccc666/) 開發

[下載](https://downloads.wordpress.org/plugin/hg3-include.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/hg3-include/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/hg3-include/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/hg3-include/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/hg3-include/#developers)

 [技術支援](https://wordpress.org/support/plugin/hg3-include/)

## 外掛說明

English:

Based on ‘MaGiKS Proper PHP’, a plugin from Keith James Lock, ‘HG3 Include Codes’
allow you to include any code (html, php, javascript,etc.) directly into the WordPress
editor. Syntax near to PHP, you can now precise the path of the file to include 
using real path, relative path or using a constant. A query (myfile?a=1) and a variable
can also be sent to the called file.

Français :

Basé sur ‘MaGiKS Proper PHP’, un plug-in de Keith James Lock, ‘HG3 Include Codes’
permet d’inclure n’importe quel code (html, php, javascript,etc.) directement dans
l’éditeur de WordPress. Syntaxe proche de PHP, vous pouvez maintenant préciser le
chemin du fichier à inclure avec son chemin réel, relatif ou en utilisant une constante.
Un query (myfile?a=1) et une variable peuvent aussi entre passés au fichier à inclure.

## 安裝方式

English:

 1. Install HG3-Include by using the usual WordPress procedures, or by uploading the
    files to your “wp-content/plugins” directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. No interface, just use [hg3_include (‘myfile.php’, ‘mypath’)] anywhere in a page
    or post editor. Also works in a Text Widget.

You can precise the path of the file to include using real path, relative path or
using a constant. A query (myfile?a=1) and a variable can also be sent to the called
file. You can choose simple include ou include_once.

See tutorial at http://www.hg3.fr/inclure-php-dans-articles-et-pages-wordpress (
french site, translators welcome).

Warning: WordPress gurus have decided that the name of a plugin could not contain
an underscore character. So, the name of the plugin is ‘HG3-Include’ but, to be 
able to select the entire word by double-clicking it, use ‘hg3_include’ as syntax.

Français :

 1. Installez HG3-Include en utilisant les procédures habituelles de WordPress, ou 
    en téléchargeant les fichiers dans “wp-content/plugins”.
 2. Activez le plug-in dans le menu ‘Extensions’ de WordPress.
 3. Pas d’interface, utilisez juste [hg3_include (‘mon_fichier.php’, ‘mon_chemin’)]
    n’importe où dans l’édition d’une page ou d’un article. Fonctionne aussi dans un
    widget texte.

Tutoriel ici : http://www.hg3.fr/inclure-php-dans-articles-et-pages-wordpress.

Attention: les gourous de WordPress ont décidé que le nom d’un plug-in ne pouvait
pas contenir un caractère de soulignement. Ainsi, le nom du plug-in est “HG3-Include”,
mais, pour pouvoir sélectionner le mot entier en double-cliquant dessus, utilisez‘
hg3_include’ comme syntaxe.

## 常見問題集

None for now, first version.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈HG3-Include〉的開發相關工作。

參與者

 *   [ ccc666 ](https://profiles.wordpress.org/ccc666/)

[將〈HG3-Include〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/hg3-include)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/hg3-include/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/hg3-include/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/hg3-include/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/hg3-include/)。

## 變更記錄

#### 1.0

 * Initial release

#### 1.1

 * Bugs fixed

## 中繼資料

 *  版本 **1.1**
 *  最後更新 **15 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 2.0.2 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.1.4**
 *  語言
 * [English (US)](https://wordpress.org/plugins/hg3-include/)
 * 標籤:
 * [code](https://tw.wordpress.org/plugins/tags/code/)[editor](https://tw.wordpress.org/plugins/tags/editor/)
   [include](https://tw.wordpress.org/plugins/tags/include/)[php](https://tw.wordpress.org/plugins/tags/php/)
 *  [進階檢視](https://tw.wordpress.org/plugins/hg3-include/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/hg3-include/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/hg3-include/reviews/)

## 參與者

 *   [ ccc666 ](https://profiles.wordpress.org/ccc666/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/hg3-include/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://www.hg3.fr/)