getExcerpt: Make ellipsis appear only if character limit is reached
You can check to see if the length of the excerpt is longer than the max count. if(strlen($excerpt) > $count){ $excerpt = substr($excerpt, 0, $count) . ‘…’; } … is the correct ellipsis character to use.