Filtered content appears in the excerpt
If there are no manual excerpts added to the Post, WordPress picks the content itself as excerpt for that Post. You may either put the excerpts for Posts manually or apply_filter(‘the_excerpt’, ‘modify_excerpt’) and remove the unwanted text from the excerpt. The function code-structure will remain almost the same, with the exception that now you will … Read more