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>
Related Posts:
- Adding a second email address to a completed order in WooCommerce [closed]
- Check if post is being published for the first time, or is an already published post being updated
- Get user id from email?
- Using email_exists() wp function in an ajax request
- How do I call wp_mail from HTML?
- Contact Form 7 – Delay auto responds
- wp-comment author- url +, email filter hook
- Deprecated function get_user_by_email($email)
- How to change this simple code so that it sends the email notification after payment in WooCommerce?
- Paragraph spaces in email template function
- Problem with email function
- What add_action reference should I be using or should I use do_action?
- Mail function not working with user accounts
- Welcome Mails based on user role
- Do something when user creates post (that’s pending)
- How to hook wp_mail to add a custom email as BCC for each sent email?
- Automatic Logout on from another active session
- How to debug vars inside function at functions.php file?
- Logout/login redirect CSS issue
- How to style current page number (wp_link_pages)?
- Generate
- Gallery images titles – get from post
- Too few arguments sent to custom function
- Issue adding text after short description on product pages Woocommerce [closed]
- Using the child theme functions.php to change the customizer.php on parent theme
- Can’t Update function.php after writing short code
- How to get last updated row or ID in wordpress
- Woocommerce HTML email option unavailable
- 2 Loops, Only Displaying 1 Loop in Both Loops
- edit role display name and label name without plugins
- is_plugin_active() not properly returning true
- Display gallery on top before content
- wp_dropdown_categories and custom attribute
- Converting html to wordpress images not showing
- How can I add text to all posts/pages/categories/homepage etc
- Related post using post title
- Move Post to different category if post_meta field is 0 or is 2 days old?
- Find a Javascript ID when trying to deregister?
- Excerpts are not displayed by a shortcode on category pages
- It does not work concatenation in function.php
- Is There Any Built In WP Functionality For Combining Form Fields To Return Specific Data
- How would I go about replacing this function in my child theme located in inc/template-tags.php
- Condition OR for current user ID
- Retrieve a value from Yoast SEO to use to set a default twitter card image honoring overrides
- wp_create_category deprecated?
- If user is logged-in display/hide something
- Visual Composer creating own shortcodes with vc_map() to return simple Image
- Adding javascript to functions.php causes problems with my template
- Where do I store custom functions that call custom page template files?
- Excerpt for pages not showing
- How can I add a class to a nav li depending on URL?
- Access category within rss2_head hook?
- How to Extend login session times to a Month
- Modifying the_posts_pagination from within functions.php instead of template files
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- Prevent WordPress Automatic Logout
- functions php file [closed]
- How to add array [closed]
- Problem with images URL after filter applying
- How add body_class from wp_termmeta
- remove_action not working, even after changing priority [duplicate]
- Rewrite Question Mark in Post Template with URL Parameter for clean URLs
- Modify function to only return values for the user that’s logged in
- WordPress performance – send all metaboxes to function or to call it again
- Change custom featured image size in twentythirteen child theme
- Theme Customizer – Custom Sections Display, but do Nothing
- WordPress comment processing . Default unapproved comments detection before posting
- Display a list of random terms from custom taxonomy with shortcode
- WP_Query for Attachments not working as expected
- Text replace for the whole body tag
- Deleting guests profile users after 1.5 hours
- wp enqueue style on about us page
- CF7 select value get to function and reciept value from function
- Remove nofollow from internal comment links via functions.php
- How can I automatically delete comments that contain a URL?
- Run function for specific user only
- Remove action hook from Class, understanding OOP
- Create custom admin bar menu items
- Adding a class to the body of an inactive site using multisite
- Conditionally apply css for a specific template part
- Placing CSS/ JS into the header or footer (inline) – trying to apply to several templates
- How to automatically add custom classes to headings in content area
- Setting Active Nav item (of Pages) when you are on a Post with Category
- How to disable site title and description when custom header is uploaded on the customizer?
- How to display content If function exist/condition true?
- Regex works in regexr, but not if I filter content [closed]
- How to run a function when publish posts? [duplicate]
- Increase Comment Author Gravatar Size On WordPress Default Comment Function
- Random text changing to weird icons in both admin & front end
- send email to all registered users when post expires
- Pass jquery var to a function in functions.php
- How about many “require_once” will affect the page load speed? [closed]
- Removing all Category pages with one exception
- Animated Accordion [closed]
- Can’t find function which is called in a wordpress theme
- Update post meta with wp cron
- delete_term is not working properly with add_action()
- get page_id in ajax to function in functions.php
- How to add user_registered time in human_time_diff() wordpress
- How to disable calculation costs of Woocommerce Booking plugin [closed]