new function related posts same category

to be used on single.php template