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
The following 5 factors detail the key techniques to influence and improve your ranking on Google.
It is important to draw people’s attention to your website or Blog. It isn’t easy to build a reputation online...
Futuristic Cars Make Parking a Piece of Cake
Cars are one of those things that so many of us have that have been changing drastically in recent years....
Roles may change: Google and Facebook may hit financial services
World needs great financial players, so Google and Facebook say ‘we are there at your service’, just check ‘what’s on...
Google Security at Stake- Android Apps
Android surely is doing great in the app market but still perfectionism hasn’t been noticed. But the new step observed...
powered by WassUp
Recent Posts: Fully Net Worth . com
Danny Towers is an upcoming rapper who is best known for his songs “‘Motel Hell”, “Geekin”, and “Trauma”. He is currently on tour with Ski Mask The Slump God and was a good friend to late XXXTentacion. As of 2019, Danny Towers net worth is estimated to be $300,000. Danny was born on April 17, […]
Michael Strahan Net Worth Who does not like that rigorous American Football game that makes your adrenaline take a toll even though you would be just sitting on a chair amongst the spectators?! Everyone does. The mere sight of the game is enough for people to make them sit on the edge of their seats […]
Paul Nassif net worth Dr. Paul Nassif is a famous plastic surgeon, and he is an expert in the field of rhinoplasty. Dr. Nassif is a Lebanese-American who has jokingly commented on his big nose. He has said that he understands when many people wish to change their features. He began his career with Dr. […]