Protecting custom field
-
Hello,
I want to protect one of my custom fields with captcha, but I’m green when it comes to coding.
Code from this thread works great: https://ww.wp.xz.cn/support/topic/is-that-any-way-to-protect-all-contents-in-1-time?replies=5, but I don’t want to protect the whole content of my post page, but just one custom field. I tried to modify it for my needs, but without success.Here is my custom field:
<?php $download = get_post_meta($post->ID, 'Download Sample', true); ?> <a class="download-button" href="<?php echo $download; ?>" title="Download Free Sample" target="_blank"><span>Download Free Sample</span></a>Any help would be appreciated.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Protecting custom field’ is closed to new replies.