How to filter Related Posts?

First, enable the related posts.
  • From your WordPress Dashboard, navigate to the Appearance > Customize > Blog Options > Related Posts
  • Check Related Posts By Categories or related Posts By Tags.
  • Click on Publish.

How to filter Related Posts?