How to limit the_content

Craig Martindale
Bert and Dip

--

Quick tip today, to limit the characters in the_content:

add_filter(“the_content”, “plugin_myContentFilter”);
function plugin_myContentFilter($content)
{
// Change 700 to the amount of characters you want to show
return substr($content, 0, 700);
}

--

--