thanks for the help michael, but the problem with this is i need it to be dynamic. it needs to find out what the custom field is for this page and then find all the related posts.
meanwhile it wouldn’t let me put any php jargon in the quotation as far as i could tell.