In WordPress, it is very popular to show excerpt of a content which shows up to particular word limits.
In each and every cases it is not require to show the whole content rather than small content with limited words.
function wordCutter($str,$len) {
if(strlen(strip_tags(html_entity_decode($str)))>len)
{
$str = substr(strip_tags(html_entity_decode($str)),0,len);
$pos = strrpos($str," ");
$str = substr(strip_tags(html_entity_decode($str)),0,$pos).'...';
}
else
{
$str = strip_tags(html_entity_decode($str));
}
}
Introduction There is an increasing need for full-stack developers because companies want people who can…
Classic Russian literature holds a quiet power that still shapes stories today. Its voice feels…
Digital channels often get most of the attention in modern branding. A business can launch…
If you have been researching digital marketing programs in India, Kraftshala and IIDE both keep…
Email marketing remains one of the highest-performing digital marketing channels because it gives businesses direct…
Pain in muscles and joints can be a problem in everyday life, whether it involves…