Linux 软件免费装
Banner图

Text Spinner

开发者 wpgurus
更新时间 2019年5月24日 10:27
捐献地址: 去捐款
PHP版本: 2.5 及以上
WordPress版本: 5.2
版权: License: GPLv2 or later
版权网址: 版权信息

标签

seo wordpress seo shortcode spintax spinner unique content text spinner php spintax

下载

0.1 1.0.0 1.1.0 1.2.0 1.3.0

详情介绍:

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: 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: 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.

更新日志:

1.3.0 1.2.0 1.1.0 1.0.0 0.1