WordPress tutorials: Share on Twitter

Wpsnipp – Share on Twitter.Adding this PHP code to the loop of your wordpress theme will allow users to share your post on twitter.If you’re using WordPress and want to automate this, simply use the following to insert the link to the current post in the loop into your link:


<a href="http://twitter.com/home?status=Reading: 
<?php the_title(); ?>" rel="nofollow"
title="retweet on twitter">Share on Twitter

Leave a comment