Automatic post type detection