The WordPress implementation of the official Twitter Tweet Button.
Twitter uses a caching system that periodically updates the tweet counts. Your browser also caches the iframe containing the count. Both these caches need to expire before any changes are made apparent.
You can use the
%BLOGTITLE% tags to do this. These tags are valid in the WP Tweet Button general configuration and in your posts' Tweet Button settings.
New blog entry: %POSTTITLE% #cats
"#cats" in this example is a tag that's relevant to your blog.
New blog entry: %POSTTITLE% - %BLOGHASHTAGS%
In this example
%BLOGHASHTAGS% will be replaced with #hash tags generated using your blog entry's tags. You can also use
%BLOGHASHCATS% to generate #hash tags using the entry's categories.
Simply edit your post and set your recommended user in the Tweet Button options box.
To create the Tweet Button manually, call the
$myCustomPlaceForSocialMedia .= tweetbutton();
$myCustomPlaceForSocialMedia .= tweetbutton($post);
The tweetbutton function currently includes 3 optional parameters: $thepost, $bwdata and $type.
tweetbutton([object $thepost][,boolean $bwdata][,string $type]);
$thepost- Defaults to $post and is the post object.
$bwdata- Defaults to false. Set this option to true if you want to generate the button using HTML5 data attributes.
$type- Defaults to the setting set in the options page. Set this parameter to 'vertical', 'horizontal' or 'none' to change the type of button.
You can skip parameters by setting them to null (Resulting in default values). Example:
Auto-tweeting using the WP Tweet Button is performed by service running on a centralized server. This is done not only to avoid the need to register an application for each blog, but also to ensure your tweets are formatted correctly in different languages.
When auto-tweeting, the plugin collects the information it needs for the tweet and sends it to the tweet server encoded in Base64. The encoding is done to avoid formatting issues. Auto-tweet are performed once per new or saved post depending on your configuration. Auto-tweeting is also performed for scheduled blog entries.