set max related posts