We'll create fresh WordPress site with Reve Click2Tweet installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Simply insert the shortcode [revec2t]
in any post, page or HTML/text widget. To add it you can use the Reve Click2Tweet classic editor button, if option is enabled (by default).
The shortcode will be replaced by the linkable box that allows your visitors to share any content on Twitter.
You can use the following attributes into the shortcode: text, url, hashtags, via, label, icon and short.
All attributes are optional. If you don’t set the text, the shortcode will display the URL to share. Also, you can set manually the URL, or the shortcode will generate the current page URL.
The attributes hashtags, via, label, icon and short allows you to custom each shortcode. If set, they will overwrite the saved options. Also, if you use the special value 0 to any attribute, the saved option will be deactivated.
Usually you only need to use the text attribute to set the text of the tweet, and allow the shortcode to do the rest.
[revec2t] : The simplest example. As you don’t set the text, the current page URL will be shown in its place.
[revec2t text=”Text of the tweet”] : The recommended use. Displays the box with the text, the current URL and the saved options.
[revec2t text=”Text of the tweet” url=”http://…”] : To use a custom URL. Note that URLs must be valid.
[revec2t text=”Text of the tweet” label=”Click here”] : Changes the default call to action label.
[revec2t text=”Text of the tweet” hashtags=”hashtag1,hashtag2″] : Sets the hashtags of the tweet, or changes the default hashtags parameter, if set.
[revec2t text=”Text of the tweet” via=”twitter_user”] : Sets or changes the default via parameter.
[revec2t text=”Text of the tweet” via=”0″ hashtags=”0″] : Disables the default via and hashtags parameters, if set in options.
Note that the Twitter API will receive and validate all the submitted params. So, is a best practice to test each shortcode when it is published, especially if the text or the URL are too long.
Currently the maximum length of a tweet is 280 characters, including the text, the URL, the via parameter, the hashtags and the blanks.
You can contribute as follow: