data structure for posts and pages