Because I’m aggregating lots of article from around the web in one post but the title and generally the first two paragraphs are always related to the title of post and rest of content is usually unrelated.
I’m currently doing something like this:
return apply_filters( 'yarpp_body_keywords', $this->extract_keywords( apply_filters( 'the_content', wp_trim_words( $post->post_content, 120 ) ), $max, $ID ), $max, $ID );
Please let me know if you think I did it right.
Thank you again!