How to limit the_content
Published in
1 min readNov 4, 2015
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);
}