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
Back link Removal Method: an effective way to rejuvenate lost Google SERP
Back link Removal Method: an effective way to rejuvenate lost Google SERP SEOs are now revolving around various link builds,...
The Blame Game: How Personal Responsibilities And Consequences Are Easily Shirked Nowadays
A man can fail many times, but he isn’t a failure until he begins to blame somebody else. –John Burroughs...
7 Ways To Turn Your Computer Into A Safe Haven For Your Child
There will come a time when your child will want to go online. You have been surfing the net for...
How The World Of Social Media Is Impacting Hospitals
It doesn’t seem so long ago that Facebook was being dismissed as nothing more than a means of getting in...
powered by WassUp
Recent Posts: Fully Net Worth . com
Avani Gregg is an American social media personality who is best known for being a star in the lip-sync and dance platform called TikTok. Here, she has managed to gain an impressive following of over 8.2 million followers along with 420 million likes in her videos. As of 2020, Avani Gregg net worth is estimated […]
Roman Kemp is an English radio host and presenter. He presents for the national radio network Capital FM and is part of the nineteenth series of I’m a Celebrity…Get Me Out of Here!. As of 2019, Roman Kemp net worth is estimated to be £2 million. Kemp was born on 28 January 1993, in Los […]
Korey Wise is one of the members of the Central Park Five. Wise was only 16 years old when he was arrested in 1989 in connection to the rape of Trisha Meili. Korey Wise net worth is estimated to be $12 million. Korey Wise along with Yusef Salaam, Antron McCray, Raymond Santana, and Kevin Richardson […]