adds posts/pages/drafts building function