Title: Content Molecules
Author: MarcusPope
Published: <strong>2011 年 11 月 11 日</strong>
Last modified: 2012 年 4 月 14 日

---

搜索插件

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

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

# Content Molecules

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

[下载](https://downloads.wordpress.org/plugin/content-molecules.zip)

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

 [支持](https://wordpress.org/support/plugin/content-molecules/)

## 描述

In the web marketing/publishing industry a content molecule is basically a piece
of reusable content that can be placed throughout a website. Typically isolated 
in nature, they often appear in sidebars and margins. Applying this concept to the
WordPress framework, you can create content that can be embedded anywhere shortcodes
are processed. Taking the concept a little further, any number of custom attributes
can be added to the usage of the shortcode, and those values can be embedded in 
the resulting output.

[m id=”slug” audience=”Student” product=”backpack”]

Will translate the following molecule:

Greetings {audience}!
 Check out our new {product} today!

into this:

Greetings Student!
 Check out our new backpack today!

Obviously a ridiculous example, but the flexibility remains the same regardless 
of the silly intent. Stop repeating content throughout your site only to have to
re-edit those pieces in every location when you need to make a correction or update.

Molecules are a custom post type. After the plugin is activated a new section will
appear in the left admin menu titled “Molecules.” There you can create and manage
reusable pieces of content. As a bonus I have added the post slug to the list view
for easy reference. If you embed a molecule in a post or page and the slug does 
not exist yet, it will create a draft for you to fill in later.

That’s about it for now, any input for future features is welcome.

### Arbitrary section

## 安装

 1. Upload the plugin contents to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress Admin
 3. You’re done!

## 常见问题

Nobody has asked me anything so, as soon as they do I’ll add some points here!

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.3

 * Improved save performance: was calling reset transients twice on save.

#### 1.2

 * Fixed two bugs: invalid var reference
    forgot to update the version tag for my
   last update 🙁

#### 1.1

 * Fixed two bugs: potential overwrite of other custom properties added to view 
   all list.
    loaded molecule specific filters are all custom post types.

#### 1.0

 * Initial creation of plugin

## 额外信息

 *  版本 **1.3**
 *  最后更新：**14 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.2.1 或更高版本 **
 *  已测试的最高版本为 **3.2.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/content-molecules/)
 * 标签
 * [content](https://cn.wordpress.org/plugins/tags/content/)[custom content](https://cn.wordpress.org/plugins/tags/custom-content/)
   [dynamic content](https://cn.wordpress.org/plugins/tags/dynamic-content/)[page](https://cn.wordpress.org/plugins/tags/page/)
   [posts](https://cn.wordpress.org/plugins/tags/posts/)
 *  [高级视图](https://cn.wordpress.org/plugins/content-molecules/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://www.marcuspope.com/)