Title: Chunks
Author: Konstantin Kovshenin
Published: <strong>2011 年 3 月 14 日</strong>
Last modified: 2011 年 6 月 17 日

---

搜索插件

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

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

# Chunks

 作者：[Konstantin Kovshenin](https://profiles.wordpress.org/kovshenin/)

[下载](https://downloads.wordpress.org/plugin/chunks.1.1.zip)

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

 [支持](https://wordpress.org/support/plugin/chunks/)

## 描述

Chunks is for theme developers that have their themes filled with footer notes, 
copyright notices, block titles and descriptions, slogans, etc, which are sometimes
hard-coded into the theme, sometimes localized (can be changed in po and mo files)
and sometimes taken out to the theme options.

Chunks will do the job for you. A “chunk” is a piece of HTML code that could be 
inserted anywhere in your theme and edited from the Theme Chunks page under Appearance
in your admin panel. Use register_chunks() in your functions.php to register chunks
for your theme and use the chunk() to get the chunk value anywhere in your template
files.

It’ll take you 5 minutes to implement Chunks in your theme: [Getting Started with Chunks](http://kovshenin.com/wordpress/plugins/chunks/)

## 屏幕截图

[⌊The Theme Chunks screen⌉⌊The Theme Chunks screen⌉[

The Theme Chunks screen

## 安装

 1. Upload archive contents to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Modify your theme to [implement chunks](http://kovshenin.com/wordpress/plugins/chunks/).
 4. Look for the ‘Theme Chunks’ option under your ‘Appearance’ menu.

## 常见问题

  Can I use chunks in my posts or pages?

Of course, try out the chunk shortcode!

  Can I use HTML in my Chunks?

Yes.

  Can I use Javascript in my Chunks?

Yes, but be careful.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Chunks」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Konstantin Kovshenin ](https://profiles.wordpress.org/kovshenin/)

[帮助将「Chunks」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/chunks)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1

 * Chunk shortcode implemented
 * Cleanup and coding style

#### 1.0

 * Chunks went from personal project to public!

## 额外信息

 *  版本 **1.1**
 *  最后更新：**15 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.8 或更高版本 **
 *  已测试的最高版本为 **3.1.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/chunks/)
 * 标签
 * [theme](https://cn.wordpress.org/plugins/tags/theme/)[utility](https://cn.wordpress.org/plugins/tags/utility/)
 *  [高级视图](https://cn.wordpress.org/plugins/chunks/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/chunks/reviews/)

## 贡献者

 *   [ Konstantin Kovshenin ](https://profiles.wordpress.org/kovshenin/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/chunks/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://kovshenin.com/wordpress/plugins/chunks/)