Title: Per Post Scripts &amp; Styles
Author: philipwalton
Published: <strong>2011 年 9 月 27 日</strong>
Last modified: 2012 年 9 月 25 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/per-post-scripts-and-styles.svg)

# Per Post Scripts & Styles

 作者：[philipwalton](https://profiles.wordpress.org/philipwalton/)

[下载](https://downloads.wordpress.org/plugin/per-post-scripts-and-styles.1.2.zip)

 * [详情](https://cn.wordpress.org/plugins/per-post-scripts-and-styles/#description)
 * [评价](https://cn.wordpress.org/plugins/per-post-scripts-and-styles/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/per-post-scripts-and-styles/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/per-post-scripts-and-styles/#developers)

 [支持](https://wordpress.org/support/plugin/per-post-scripts-and-styles/)

## 描述

Properly and safely add specific Javascript and CSS stylesheets to single posts,
pages, and custom post types.

**Features:**

 * Dynamic URLs with `%HOME_URL%`, `%SITE_URL%`, and `%THEME_URL%` variables
 * Script dependency support as well as script duplication checking
 * The option to load scripts in either the header and footer
 * Attach scripts to posts, pages, and custom post types
 * Load attached scripts and styles not just on that post’s page, but on the home
   page or any other page where that post is displayed.

For complete documentation, visit [philipwalton.com](http://philipwalton.com/2011/09/25/per-post-scripts-and-styles/)

## 安装

 1. Upload the per-post-scripts-and-styles folder to `/wp-content/plugins/` on your
    server
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Customize the settings you want from the ‘Per Post Scripts & Styles’ Settings submenu
 4. Add scripts and stylesheet URLs directly to posts from the edit post page.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Per Post Scripts & Styles」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Per Post Scripts & Styles」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/per-post-scripts-and-styles)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/per-post-scripts-and-styles/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/per-post-scripts-and-styles/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/per-post-scripts-and-styles/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/per-post-scripts-and-styles/)。

## 更新日志

#### 1.2

 * Add support for THEME_URL

#### 1.1

 * Add the ability to include a footer script block
 * Add support for WordPress 3.3
 * Add support for child themes

#### 1.0.1

 * Fix a bug where meta boxes weren’t properly showing up on custom post type edit
   pages

#### 1.0

 * First publicly released version

## 额外信息

 *  版本 **1.2**
 *  最后更新：**14 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **3.4.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/per-post-scripts-and-styles/)
 * 标签
 * [css](https://cn.wordpress.org/plugins/tags/css/)[javascript](https://cn.wordpress.org/plugins/tags/javascript/)
   [post](https://cn.wordpress.org/plugins/tags/post/)[script](https://cn.wordpress.org/plugins/tags/script/)
   [stylesheet](https://cn.wordpress.org/plugins/tags/stylesheet/)
 *  [高级视图](https://cn.wordpress.org/plugins/per-post-scripts-and-styles/advanced/)

## 评级

 4.8 星（最高 5 星）。

 *  [  5 条 5 星评价     ](https://wordpress.org/support/plugin/per-post-scripts-and-styles/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/per-post-scripts-and-styles/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/per-post-scripts-and-styles/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/per-post-scripts-and-styles/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/per-post-scripts-and-styles/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/per-post-scripts-and-styles/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/per-post-scripts-and-styles/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/per-post-scripts-and-styles/)