made custom_posts an accessible attr