Below, you’ll find a detailed guide on how to add the Text Spinner Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Text Spinner Plugin shortcode not to show or not to work correctly.
Before starting, here is an overview of the Text Spinner Plugin and the shortcodes it provides:
"Text Spinner is a unique WordPress plugin that automates the process of text spinning, aiding in content diversification and SEO. Simplify content creation with Text Spinner!"
- [wpts_spin]
Text Spinner [wpts_spin] Shortcode
The WPTS Spin shortcode is a powerful tool in the WordPress Text Spinner plugin. It spins the text within its tags to create unique content. This shortcode uses a PHP function to generate varied content from the original text. It enhances SEO by reducing duplicate content.
Shortcode: [wpts_spin]
Examples and Usage
Basic Example – The basic usage of the text-spinner plugin shortcode. It is designed to spin the content enclosed within the shortcode tags.
[wpts_spin]Your text to be spun goes here[/wpts_spin]
Advanced Examples
Using the shortcode with parameters. This example uses the “synonyms” parameter, which allows you to provide your own set of synonyms for the spinner to use. The synonyms should be provided as a comma-separated list within the “synonyms” attribute.
[wpts_spin synonyms="happy,glad,pleased"]Your text to be spun goes here[/wpts_spin]
Another advanced usage of the shortcode. This example uses the “spin” parameter, which controls whether the content should be spun or not. If the value of the “spin” parameter is “no”, the content will not be spun.
[wpts_spin spin="no"]Your text to be spun goes here[/wpts_spin]
PHP Function Code
In case you have difficulties debugging what causing issues with [wpts_spin]
shortcode, check below the related PHP functions code.
Shortcode line:
add_shortcode( 'wpts_spin', 'wpts_render_shortcode' );
Shortcode PHP function:
function wpts_render_shortcode( $atts, $content = '' ) {
return wpts_spin( $content, $atts );
}
Code file location:
text-spinner/text-spinner/text-spinner.php
Conclusion
Now that you’ve learned how to embed the Text Spinner Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.
Leave a Reply