Ever wanted to display the title of a post somewhere but limit the amount of characters that are shown? For instance, this post has a very long title, and if I were to use
<?php echo the_title() ?> it would show as follows: Limit the characters that display on the_title.
That may not fit well on one line in lets say a widget or small width
div. So here is a neat trick you can use:
<?php $title = the_title('','',FALSE); echo substr($title, 0, 11); ?>
Pretty simple huh, just note the bold numbers, in this case 11 character would output like this: Limit the c.
Thanks to Tattershall Way for this snippet.
Random Search Terms
Sam Bauers on bbPress [video]
As mentioned in a previous post, I was able to record about 85% of the WordCampDev topic bbPress.
The actually release of WordPress 2.8 announced
The WordPress development blog has put a date on the release of 2.8, plus some notes.
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...
powered by WassUp
Recent Posts: Fully Net Worth . com
Kieran Hayler is an actor who has appeared in Argumental, Loose Women and All-Star Family Fortunes. He was also a stripper and was associated as an entertainer with Adonis Cabaret Hen party Nights in London. As of 2019, Kieran Hayler net worth is estimated to be around £200,000. Hayler was born on March 22, 1987, […]
Tyree Cinque Simmons, who is better known as DJ Drama, is an American DJ and record executive producer who is the co-founder of Generation Now that includes top artists such as Lil Uzi Vert and Jack Harlow. As of 2019, DJ Drama net worth is estimated to be around $12 million. Simmons was born on […]
David Dobrik’s Net Worth: Know Everything About Him In recent years, we have seen the rise of many YouTubers. Ever since the time the market started booming with new YouTubers, this new way of entertaining people has come to the limelight. Speaking of popular YouTubers, we simply cannot miss out on David Dobrik. He is […]