How to get adjacent_post custom_field value

I think I solved the problem in this way:

I get the custom field data using get_post_meta:

<?php $prev_post_type = get_post_meta($prev_post->ID, '_product_type', true);?>

and then I use it to customize the link:

<a href="https://wordpress.stackexchange.com/questions/252475/<?php echo get_permalink( $prev_post->ID ); ?>"><?php echo $prev_post_title ." ". $prev_post_type ?></a>