Set post type var