in order to open a new window
I tried to add
global $post; $cf = get_post_meta( $post->ID, 'my_custom_field', true );
but it doesn't work. Thanks for your help.