WordPress.org

Ready to get started?Download WordPress

Forums

antispambot populated by post mete (2 posts)

  1. shackep
    Member
    Posted 2 years ago #

    Is there a good way to put a post meta value into the antispambot function?

    <?php echo get_post_meta($post->ID, "_email", true); ?>
    This is how I am calling my email value from my custom post type.

    <?php echo antispambot(get_the_author_email()); ?>

    I have tried:

    <?php $email = get_post_meta($post->ID, "_email", true);
    echo antispambot($email()); ?>

    But that did not work. I am curious if I am going about it all wrong.
    Thanks,
    Peter

  2. kitchin
    Member
    Posted 2 years ago #

    antispambot($email())
    should be
    antispambot($email)

Topic Closed

This topic has been closed to new replies.

About this Topic