For my website I wanted to display related posts by category. For this feature I stumbled on a code snippet which worked for me. As you can see it looks for the similar category and then displays the content of the posts. All I needed to do is change the content to match the layout of my design.
Have any questions? Share this posts and tag me!