Jump to content
Michael Pusch

Limit Description Words in Listing Type SEO

Recommended Posts

You can use the Page Description Metatag developer filter to make this type of change.

function change_description_metatag($description, $params)
{
  S2App::import('Helper','text','jreviews');
  
  $TextHelper = new TextHelper;
 
  return $TextHelper->truncateWords($description,20);
}
 
Clickfwd\Hook\Filter::add('page_description_metatag', 'change_description_metatag', 10);

 

Share this post


Link to post

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Please refer to our Privacy Policy.