I think the problem is echo vs return,
i.e. that you are using the_field
instead of get_field
.
What you’re trying to do is similar to this:
antispambot( echo( '[email protected]' ) )
but echo
returns nothing.
Please try:
<?php $email = antispambot( get_field( 'queries_e-mail' ) ); ?>
<p>
<a href="https://wordpress.stackexchange.com/questions/124180/mailto:<?php echo $email; ?>">
<?php echo $email; ?>
</a>
</p>