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
Maintenance release for Hybrid 0.5
Today has released an update to his Hybrid Theme. Version 0.5.1 can be found at the WordPress theme repository. Advertisements
Using the swekey on your blog
If you’ve downloaded the Swekey plugin and plan on using it for users to login here is what you might...
April’s new meetup location for LAWPUG
Anyone in the Los Angeles area? Well the first Sunday of the month is the LAWPUG, and since the weather...
Swekey: A safe web enabler usb?
I received a Swekey in the mail this week. What’s a Swekey you ask? Like regular keys protect your car...
powered by WassUp
Recent Posts: Fully Net Worth . com
Angie Varona Angie Varona is a model, social media influencer, and sex symbol. Who become famous online at the young age of 14 when someone hacked her Photobucket account where she had pictures of her in bra and panties that were taken for her boyfriend at the time. These pictures quickly went viral, causing Angie […]
Peter Morton is an American businessman best known as the co-founder of the Hard Rock Café and also a chain of dining restaurants. As of 2019, Peter Morton net worth is estimated to be $800 million. Peter was born on August 7, 1947, in Chicago, Illinois. He is the son of Arnie Morton, founder of […]
AzChike is an American rapper who is from South Central, Los Angeles. He is best known for his hit songs “Burn Rubber Again” and “Licked Up”. As of 2019, AzChike net worth is estimated to be $250,000. Growing up, he loved to ride bikes and was a social kid who liked to have fun with […]