updates to conditional logic for post types