support@gracethemes.com

Reply To: Slider blank lines and to short text

Home Support Business Growth WordPress Theme Slider blank lines and to short text Reply To: Slider blank lines and to short text

#4789

Hi,

I don’t have the code that you mention, for me the line looks like this:

$content = apply_filters(‘the_content’, substr(strip_tags($post->post_content), 0, 100));

which explains, why the line is truncated after exactly 100 characters.

Why aren’t you using https://codex.wordpress.org/Function_Reference/get_the_excerpt?