Remove Jetpack Related Post from Custom Post Types

Jetpack’s related posts is a great tool to show similar post for the current article. Generate related post is not just as easy, you can’t just query a similar category for more content.

Jetpack has an advanced algorithm which servers the most similar posts right under – or somewhere else – your posts. By default, it will show on your Custom Post Types which in some cases, not the most ideal. Luckily it is easy to turn it off!

As you see we use the jetpack_relatedposts_filter_options filter witch a simple CPT condition with the help of is_post_type_archive() function. If the condition is true we set the $options[‘enabled’] to false.