Title: Arbitrary Shortcodes
Author: philfreo
Published: <strong>2009 年 5 月 11 日</strong>
Last modified: 2009 年 5 月 11 日

---

搜索插件

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

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

# Arbitrary Shortcodes

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

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

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

 [支持](https://wordpress.org/support/plugin/arbitrary-shortcodes/)

## 描述

Replaces Shortcodes with Homepage Custom Fields.

This plugin allows you to write your page content like this:
 “Contact our company,[
company_name], by email at: [email].”

Text with these shortcodes can be defined on any number of pages throughout your
site.

The values of all of the shortcodes are controlled in a single location: the Custom
Fields of your blog’s home page. For the above example, there would be Custom Fields
on the home page called “company_name” and “email” with the values, respectively,
of “Example Company Name” and “info@example.com”.

_This plugin requires that you have WordPress set to show a static Page on the home
page under Settings->Reading and “Front page”._

So then, for all the custom fields entered on the home page, this plugin looks for
shortcodes (in all pages) and replaces each of their values, upon output, with the
relevant custom field value.

This is useful for if you want to fill many pages with text that includes an arbitrary
number of shortcodes or template text and have all the values can be replaced in
one place.

-By [Phil Freo](http://philfreo.com)

## 安装

_This plugin requires that you have WordPress set to show a static Page on the home
page under Settings->Reading and “Front page”._

 1. Upload the `arbitrary-shortcodes/` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Fill your content on any page(s) on your site with the desired arbitrary shortcodes
 4. For each shortcode you would like to define, create a custom field (and value) 
    on the page that is shown as the “home page” for the site.

## 常见问题

None

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **1.0**
 *  最后更新：**17 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.7.1 或更高版本 **
 *  已测试的最高版本为 **2.7.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/arbitrary-shortcodes/)
 * 标签
 * [customfields](https://cn.wordpress.org/plugins/tags/customfields/)[replace](https://cn.wordpress.org/plugins/tags/replace/)
   [shortcodes](https://cn.wordpress.org/plugins/tags/shortcodes/)
 *  [高级视图](https://cn.wordpress.org/plugins/arbitrary-shortcodes/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=phil%40philfreo%2ecom&lc=US&item_name=PhilFreo%2ecom&no_note=1&no_shipping=1&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)