Wordpress Custom Post Type and Meta framework