add related-posts code