bringing the related posts code into renderLeftNav