Show Your Latest Tweet In Just 5 Lines Of Code

This piece of code is just awsome as it lets you show your latest tweet with no more than 5 lines of code using the twitter search feed. Add this code to functions.php function wp_echoTwitter($username){ include_once(ABSPATH.WPINC.’/rss.php’); $tweet = fetch_rss(“http://search.twitter.com/search.atom?q=from:” . $username . “&rpp=1”); echo $tweet->items[0][‘atom_content’]; } To display latest tweet within your theme, use the […]

Add “Read More” Permalink To The End Of The_Excerpt

Adding this snippet below into the functions.php file of your WordPress theme will add a “read more” permalink at the end of the_excerpt, pretty much like what the_content does. function excerpt_readmore($more) { return ‘… <a href=”‘. get_permalink($post->ID) . ‘”>’ . ‘Read More’ . ‘</a>’; } add_filter(‘excerpt_more’, ‘excerpt_readmore’);

How Do I Make A Picture As A Background On My Web Pages?

Point the body background to the name of your image you wish to use as the background as shown below. This body line should be the first line after your < / head> tag. <body background=”picture.gif”> You can also have the background image fixed, so it does not move when using the scroll bar in […]