Title: Text Spinner
Author: Hassan Akhtar
Published: <strong>2014 年 3 月 6 日</strong>
Last modified: 2019 年 5 月 24 日

---

搜索插件

![](https://ps.w.org/text-spinner/assets/banner-772x250.png?rev=1538019)

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

![](https://ps.w.org/text-spinner/assets/icon-256x256.png?rev=1538019)

# Text Spinner

 作者：[Hassan Akhtar](https://profiles.wordpress.org/khaxan/)

[下载](https://downloads.wordpress.org/plugin/text-spinner.1.3.0.zip)

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

 [支持](https://wordpress.org/support/plugin/text-spinner/)

## 描述

This tiny plugin allows you to use spintax like `{phrase 1|phrase 2|phrase 3}` in
your posts, pages and theme files. Just enclose the content that you want to be 
processed in the shortcode [wpts_spin][/wpts_spin] and a unique copy will be generated
on each page load. Alternatively, you can pass the spintax string to the function`
wpts_spin()` and echo the returned value.

The plugin can help you avoid duplicate content penalties. For instance if you have
a sizable block of text that needs to appear throughout the website then you can
write spintax for it and use the above-mentioned shortcode or template tag to generate
unique copies.

Nested spintax like `{phrase 1|phrase 2|{sub-phrase 1|sub-phrase 2|sub-phrase 3}}`
is also supported by the plugin.

**Example 1:**

_Shortcode:_

    ```
    [wpts_spin]{phrase 1|phrase 2|phrase 3}[/wpts_spin]
    ```

_Function:_

    ```
    <?php wpts_spin('{phrase 1|phrase 2|phrase 3}'); ?>
    ```

_Sample Output:_

 * phrase 1
 * phrase 2
 * phrase 3

**Example 2 (Nested Spintax):**

_Shortcode:_

    ```
    [wpts_spin]{phrase 1|phrase 2|{sub-phrase 1|sub-phrase 2|sub-phrase 3}}[/wpts_spin]
    ```

_Function:_

    ```
    <?php wpts_spin( '{phrase 1|phrase 2|{sub-phrase 1|sub-phrase 2|sub-phrase 3}}' ); ?>
    ```

_Sample Output:_

 * phrase 1
 * sub-phrase 2

**Example 3 (Caching):**

_Shortcode:_

    ```
    [wpts_spin cache="604800"]{phrase 1|phrase 2|phrase 3}[/wpts_spin]
    ```

_Function:_

    ```
    <?php wpts_spin( '{phrase 1|phrase 2|phrase 3}', array( 'cache' => '604800' ) ); ?>
    ```

_Sample Output:_

Same as Example 1 but the output will be cached for a week (604800 seconds).

## 安装

 1. Use WordPress’ plugin installer to install the plugin.
 2. Use the shortcode [wpts_spin] in posts or pages.

## 常见问题

  How deep can the nesting be?

It can be as deep as you like. However a nested string might take more time to be
processed.

  The same content is appearing on every page load. What could be the problem?

The plugin works only when the page is rendered dynamically. If the post or page
is being loaded from a cache then the same content might keep appearing on every
page load.

## 评价

![](https://secure.gravatar.com/avatar/cc5b47e329fb1fa2b5a74c2b11a6cc96ae27cc88da03d70b8d9d29390302c043?
s=60&d=retro&r=g)

### 󠀁[Good plugin](https://wordpress.org/support/topic/good-plugin-5285/)󠁿

 [phuc88bmt](https://profiles.wordpress.org/phuc88bmt/) 2021 年 6 月 9 日

Very useful

![](https://secure.gravatar.com/avatar/b4c72bd8f39365f278d2ff29fed457a8978d00ef5428699a286420d07b63f7d3?
s=60&d=retro&r=g)

### 󠀁[Don’t work](https://wordpress.org/support/topic/dont-work-316/)󠁿

 [kenteush29](https://profiles.wordpress.org/kenteush29/) 2020 年 3 月 27 日

Nothing happens, it doesn’t work.

![](https://secure.gravatar.com/avatar/2f7cfbcda4e0913eb31e6684e88b8e3c052954c4afcfd8d30abfc7e53a5e66df?
s=60&d=retro&r=g)

### 󠀁[It doesn’t work at all!](https://wordpress.org/support/topic/it-doesnt-work-at-all-10/)󠁿

 [seppp](https://profiles.wordpress.org/seppp/) 2019 年 12 月 30 日

don’t waste your time!

![](https://secure.gravatar.com/avatar/31618c01ea7a04d562e4142243214a8a4355976744621b700738136199ebddf4?
s=60&d=retro&r=g)

### 󠀁[Works Well!](https://wordpress.org/support/topic/works-well-1444/)󠁿

 [marcuscouch](https://profiles.wordpress.org/marcuscouch/) 2018 年 9 月 9 日

There are few “spinner” engine plugins that have worked properly for me. This one,
however worked quite well. It can even spin certain HTML, as I had it spin some 
random images into my test post. Very good, easy to use plugin for those that spin
content.

![](https://secure.gravatar.com/avatar/e9fe5b839b782855d12cfcaba4ae163eb2e49ea3edcc8f8690c1aed32bb141e1?
s=60&d=retro&r=g)

### 󠀁[Just Awesome](https://wordpress.org/support/topic/just-awesome-170/)󠁿

 [alex_ebo](https://profiles.wordpress.org/boosty/) 2017 年 8 月 23 日

Simple, worthful, awesome!

![](https://secure.gravatar.com/avatar/b17f7925a299acb11b070557652fe539c997a756d1f4b6b96cd20f0edb158aa5?
s=60&d=retro&r=g)

### 󠀁[On every site](https://wordpress.org/support/topic/on-every-site-3/)󠁿

 [wasanajones](https://profiles.wordpress.org/wasanajones/) 2017 年 6 月 18 日

thanks for this essential plugin

 [ 阅读所有7条评价 ](https://wordpress.org/support/plugin/text-spinner/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Hassan Akhtar ](https://profiles.wordpress.org/khaxan/)
 *   [ WPGurus ](https://profiles.wordpress.org/wpgurus/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.3.0

 * Added caching for performance

#### 1.2.0

 * Checked compatibility with WordPress 4.9

#### 1.1.0

 * Checked compatibility with WordPress 4.7

#### 1.0.0

 * Checked compatibility with WordPress 4.6

#### 0.1

 * Initial release

## 额外信息

 *  版本 **1.3.0**
 *  最后更新：**7 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 2.5 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  语言
 * [English (US)](https://wordpress.org/plugins/text-spinner/)
 * 标签
 * [seo](https://cn.wordpress.org/plugins/tags/seo/)[spinner](https://cn.wordpress.org/plugins/tags/spinner/)
   [spintax](https://cn.wordpress.org/plugins/tags/spintax/)[text spinner](https://cn.wordpress.org/plugins/tags/text-spinner/)
   [wordpress seo](https://cn.wordpress.org/plugins/tags/wordpress-seo/)
 *  [高级视图](https://cn.wordpress.org/plugins/text-spinner/advanced/)

## 评级

 3.9 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Hassan Akhtar ](https://profiles.wordpress.org/khaxan/)
 *   [ WPGurus ](https://profiles.wordpress.org/wpgurus/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://wpgurus.net/text-spinner)