- This topic has 2 replies, 3 voices, and was last updated 10 years, 6 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Content Protection
Tagged: protect custom field content
I am using Advanced Custom Field for some of my contents, but when I turn on the Content Protection that only the content inside of the editor will be lock.
I want everything will be lock when it is on and that make sense.
Screenshot attach:
http://s30.postimg.org/71on80u2n/image.png
http://s11.postimg.org/kcld2dsch/image.png
http://s13.postimg.org/54tajrydh/image.png
Thanks.
Hi,
simple membership works with plugins that are build around “the_content” hook. ACF has its own implementation which is not supported in simple membership
Hi,
If you know how to edit the template, you can just wrap this code around any custom field content in your template:
<?php if(SwpmMemberUtils::is_member_logged_in()) { ?>
//Your message for logged-in members goes here
<?php } ?>
I did this to protect content created by WP Types custom fields. My page template code looks like this…
<?php if(SwpmMemberUtils::is_member_logged_in()) { ?>
<?php echo types_render_field(“photos”); ?>
Price: $<?php echo types_render_field(“price”); ?>
<?php echo types_render_field(“order-form-code”, array(“output”=>”raw”)); ?>
</div>
<?php } ?>
I hope that makes sense.