Add functionality to auto add posts and pages