Created
May 6, 2015 11:57
-
-
Save erezLieberman/58297c24c16fd058d278 to your computer and use it in GitHub Desktop.
social urls in wp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a class="share_twitter" href="https://twitter.com/home?status=<?php the_title();echo " - ". $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ?> " target="_blank"> | |
</a> | |
<a class="share_twitter" href="http://www.facebook.com/sharer/sharer.php?u=<?php echo $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ?>&t=<?php the_title(); ?>" target="_blank"> | |
</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment