In the original code, this is actually ```'type-' . $post->post_type```