Update articles.php

Added a related posts function as well as a way to get articles by category ID.