Move related posts to custom_functions.php