Renamed sample function on post types