Added example to compact_post_types function