Would it be possible to adapt this to only work for a specific post type? Say “events”? Thanks!!