Articles

WordPress “Send to Twitter” Button Without Using a Plugin

Friday, February 12th, 2010

There are lots of plugins that let you insert a Send to Twitter button into your posts. If you don’t want to use one or if you want to have the Send to Twitter button only in specific posts then you can make a shortcode that you will use only wherever you want it to appear. In order to do that follow these instructions:

  1. Paste the following code in the functions.php file in your theme:
    function twitt() {
    return '<div id="twittit"><a href="http://twitter.com/home?status=Currently reading '.get_permalink($post->ID).'" title="Click to send this page to

read more...

WordPress Categories: Alternate CSS Stylesheets | posted on: Tuesday, February 9th, 2010


BuddyPress 1.2 released | posted on: Sunday, February 7th, 2010


WordPress Alternating Comments Styles | posted on: Friday, February 5th, 2010


WordPress Related Posts without using a Plugin | posted on: Wednesday, February 3rd, 2010


Include jQuery in your WordPress Theme | posted on: Tuesday, February 2nd, 2010


Register Multiple Sidebars in WordPress: the simplest way | posted on: Monday, February 1st, 2010


Get rid of curly quotes in your WordPress blog | posted on: Monday, February 1st, 2010


WordPressious.com Came Alive | posted on: Saturday, January 30th, 2010


WordPress 3.0 Features | posted on: Thursday, January 28th, 2010


Early 2010 WordCamps | posted on: Tuesday, January 5th, 2010


WordPress 2.9.1 Download | posted on: Tuesday, January 5th, 2010


Display Recently Updated Posts/Pages | posted on: Monday, January 4th, 2010


Display Recent Posts | posted on: Monday, January 4th, 2010


What Are Shortcodes? | posted on: Tuesday, December 29th, 2009