Added resource custom post type stuff.