Support » Fixing WordPress » Using antispambot() for mailto out side of loop

  • I have a client that wants to have an email link on a post. Not on every post. Insted of using this code in the loop:
    <a href="mailto:<?php echo antispambot(get_the_author_email()); ?>">email author</a>

    could I use:
    <a href="mailto:<?php echo antispambot(author@xyz.org); ?>">email author</a>

    in the post?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Using antispambot() for mailto out side of loop’ is closed to new replies.