WordPress.org

Ready to get started?Download WordPress

Forums

Attachments
[resolved] How to hide attachments on password protected post? (3 posts)

  1. harper1983
    Member
    Posted 2 years 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?

    http://wordpress.org/extend/plugins/attachments/

  2. Ciro Urdaneta
    Member
    Posted 2 years ago #

    Same problem here and no answers...

  3. Lukis
    Member
    Posted 2 years ago #

    I used this:

    <?php if ( ! post_password_required() && ( is_page() ) ) : ?>
    YOUR CODE HERE
    <?php endif; ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic