Support » Plugin: Attachments » How to hide attachments on password protected post?
5 years, 5 months ago
What do I need to add to the php code provided to keep attachments from being visible to users who have not yet entered the password to the post?
5 years, 4 months ago
Same problem here and no answers…
4 years, 6 months ago
I used this:
<?php if ( ! post_password_required() && ( is_page() ) ) : ?>
YOUR CODE HERE
<?php endif; ?>