Check we're on the correct post type before editing columns

Closes #6991