adding conditional for showing related posts