Title: Post Head Includes
Author: Rick Buczynski
Published: <strong>2013 年 5 月 14 日</strong>
Last modified: 2013 年 8 月 25 日

---

搜尋外掛

![](https://ps.w.org/post-head-includes/assets/banner-772x250.jpg?rev=712651)

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

![](https://s.w.org/plugins/geopattern-icon/post-head-includes_363843.svg)

# Post Head Includes

 由 [Rick Buczynski](https://profiles.wordpress.org/rbuczynski/) 開發

[下載](https://downloads.wordpress.org/plugin/post-head-includes.zip)

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

 [技術支援](https://wordpress.org/support/plugin/post-head-includes/)

## 外掛說明

Easily add scripts and stylesheets per post. This is a great tool for developers
creating custom pages for their clients, but also useful for the blogger who wants
to separate inline CSS & JS from their post content.

This plugin provides an interface for wp_enqueue_script and wp_enqueue_style functions,
so all of the functionality that a developer would find there is available in this
plugin.

However, script localization differs from wp_localize_script in that with this plugin
you are allowed to input raw JavaScript code for localization, library initialization,
and more.

This plugin may also help to alleviate modern browser XSS detection from blocking
potentially unsafe JavaScript.

## 螢幕擷圖

 * [[
 * Easily add unlimited items to your post or page.
 * [[
 * You only need to configure a type and a source to get your includes properly 
   loaded.
 * [[
 * For more advanced options, you can completely customize your scripts, adding 
   localizations or initializer code.
 * [[
 * Tag your included stylesheets for properly CSS media types to add greater flexibility
   to your pages.

## 安裝方式

 1. Upload files to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Create a new post or page
 4. Configure your post head includes in the meta box below the editor

## 常見問題集

  Where are my scripts and stylesheets?

They will be added to the HEAD area of the page or post.

  Can I have more than one script or stylesheet?

Yes, you can add as many as you’d like or need.

  Can I add my scripts to the footer for faster loading?

Yes, under the Advanced Options you can set `In Footer` to `true`.

  My included script needs to be initialized. How can I do this?

Under `Advanced Options` you can add any custom JavaScript to the `Localization`
text area. This will be added after your JS file.

  How to conditions work?

When adding a condition, you need only to write the expression, and not the entire
comment tag. For example, to load the item only for IE browsers at version 9, you
would write `if IE 9`. Note: Adding a condition will force the item to be included
at the end of the element (after all other scripts and stylesheets). Therefore, 
specifying dependencies will have no effect.

## 使用者評論

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

## 參與者及開發者

以下人員參與了開源軟體〈Post Head Includes〉的開發相關工作。

參與者

 *   [ Rick Buczynski ](https://profiles.wordpress.org/rbuczynski/)

[將〈Post Head Includes〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/post-head-includes)

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

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

## 變更記錄

0.2.1 – Fixed inconsistent post ID management on save.
 0.2.0 – Added support for
IE conditional tags; minor code cleanup. 0.1.0 – First release.

## 中繼資料

 *  版本 **0.2.1**
 *  最後更新 **13 年前**
 *  啟用安裝數 **10+**
 *  已測試相容的 WordPress 版本 **3.5.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/post-head-includes/)
 * 標籤
 * [css](https://tw.wordpress.org/plugins/tags/css/)[javascript](https://tw.wordpress.org/plugins/tags/javascript/)
   [wp_enqueue_script](https://tw.wordpress.org/plugins/tags/wp_enqueue_script/)
   [wp_enqueue_style](https://tw.wordpress.org/plugins/tags/wp_enqueue_style/)
 *  [進階檢視](https://tw.wordpress.org/plugins/post-head-includes/advanced/)

## 評分

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

[Your review](https://wordpress.org/support/plugin/post-head-includes/reviews/#new-post)

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

## 參與者

 *   [ Rick Buczynski ](https://profiles.wordpress.org/rbuczynski/)

## 技術支援

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

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

## 贊助

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

 [ 贊助這個外掛 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=49Q7JW9AJHJMG)