Support
Support » Plugin: Obfuscate Email » Not working when template uses get_post_meta
(@valleywdc)
4 years, 10 months ago
A template in my theme uses get_post_meta to pull in some content. Only part of the content is an email address.
What’s the best way to get the plugin to work for this section of the template?
Would it be the supplied filter? If so, what string should be added to the $filters array in this case, as ‘the_meta’ didn’t work?
Thanks much!
https://wordpress.org/plugins/obfuscate-email/
Instead of using the code for functions.php, I just used the template code. All set.
$customContent = get_post_meta($post->ID, ‘My Custom Content’, true); echo c2c_obfuscate_email( $customContent );