filter the available post types in the internal linking

Unless otherwise specified, all code here is licensed GPLv2