@colinwalker thanks, I've been messing about with this for a long time. Eventually I'd like a WordPress plugin with custom post type. These already exist but it is a hobby:-)