Title: WP-Strings
Author: Jonathan
Published: <strong>2012 年 7 月 16 日</strong>
Last modified: 2012 年 7 月 16 日

---

搜索插件

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

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

# WP-Strings

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

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

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

 [支持](https://wordpress.org/support/plugin/wp-strings/)

## 描述

Have you ever wanted to have string input fields where you can input any string,
and then call this from your templates? If so this is the plugin for you! WP-Strings
allows you to input strings, that you can then call as many times as you want within
your wordpress template.

If you update one of these strings from within the admin section, the string will
change accross all of your templates.

For example, if you had a phone number that you used in multipe locations across
your theme, but knew it might change, you can put this into the WP-Strings admin
panel. You can then reference the telephone number from your template in the required
locations and know in confidence that when you change the number in the backend,
the telephone number will change across the site.

## 屏幕截图

[⌊Here's a screenshot a list of all custom strings that are stored in the database⌉⌊
Here's a screenshot a list of all custom strings that are stored in the database⌉[

Here’s a screenshot a list of all custom strings that are stored in the database

[⌊Here's a screenshot of the custom strings option⌉⌊Here's a screenshot of the custom
strings option⌉[

Here’s a screenshot of the custom strings option

## 安装

 1. Upload the WP-Strings folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Place ‘string_option();’ in your templates
 4. string_option() takes two arguments, firstly the name of the String you want to
    output (not case sensative). Secondly the echo value, default is 1(echo), 0 will
    just return the value

If you wish to use a string from within the content, you can use the shortcode [
string s=””], within the ‘s’ attribute add in the name of your string you require.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 0.1

 * First itteration of WP-Strings
 * Added custom strings
 * Added support to delete custom strings

#### 0.2

 * Added shortcode functionality

## 额外信息

 *  版本 **0.2**
 *  最后更新：**14 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 3.4.0 或更高版本 **
 *  已测试的最高版本为 **3.4.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-strings/)
 * 标签
 * [custom fields](https://cn.wordpress.org/plugins/tags/custom-fields/)[strings](https://cn.wordpress.org/plugins/tags/strings/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-strings/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/wp-strings/reviews/#new-post)

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

## 贡献者

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

## 支持

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

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

## 捐助

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

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