Use the correct post type when checking for the last published date