This little trick can be useful for calling custom functions and printing the title with out spaces for W3C compatibility. I used this trick in a new theme called Galleria, which will be out for public download in the coming days.
Using this comes in handy for a delicious text link:
<?php $title = get_the_title(); ?> <a rel="nofollow" href="http://del.icio.us/post?url=<?php echo $title; ?>&<?php echo str_replace(" ", "%20", $title); ?>"> Bookmark This (<?php echo $title; ?>)</a>
What I am doing is calling
$title = get_the_title(); and using
str_replace(" ", "%20", $title); to replace empty spaces with a
%20, which is used in URL encoding empty spaces.
Alternatively you can use a dash or underscore.
Thanks to Jason Boyle for his adaption.
Random Search Terms
Ben Dunkle on designing icons for WordPress [video]
I know many people attendedWordCamp 2009, in fact I believe there were 700 plus attendees. Well not every one showed...
Notes from WordCamp San Fransisco
Over view notes of San Francisco WordCamp 2009 by [insert creator]??
Steve Souders, speeding up themes [notes]
Steve Souders, who currently works at Google is here to talk about speeding up your themes. Some overview notes WhySlow...
powered by WassUp
Recent Posts: Fully Net Worth . com
Dr. Nebil Bill Aydin is a Double Board Certified Plastic and Reconstructive Surgeon. His specialization lies in aesthetic cosmetic surgery of the face and body. Aydin is originally from Istanbul, Turkey but had migrated to Los Angeles in the U.S. when he was 16. As of 2019, Bill Aydin net worth is estimated to be […]
Brett Hoffman, who is better known by his online alias as Dakotaz, sometimes referred to as DK, is a Twitch Streamer and a Youtuber. He is an active player of the game Fortnite and today has over 4 million followers on his Twitch channel. As of 2019, Dakotaz Net Worth is estimated to be $2.5 […]
Ben Zobrist is an American professional baseball second baseman and outfielder who currently plays for the Chicago Cubs of Major League Baseball. Early Life Ben was born on May 26, 1981, in Eureka, Illinois to Cynthia and Tom Zobrist. He started playing baseball when he was eight years old. He graduated from Eureka High School […]