WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Member Access

Member Access is a WordPress plugin that allows an administrator to require that users be logged-in in order to view certain posts and pages.

Localization

NOTE: If you have previously sent me a translation file, please resend it. All stored translation files were lost!

If you are interested in contributing to the localization of Member Access, please contact me and let me know which language you would like to translate. All help is greatly appreciated!

Localization Contributors:

Some resources on localization:

Template Developers

This plugin provides the template tag member_access_is_private() that can be used to determine whether or not a post should be visible only to members. You can use this tag in your templates to add custom styles to posts that are not available to the general public. For example:

<?php if (have_posts()): while (have_posts()): the_post() ?>
    <?php if (function_exists(member_access_is_private) && member_access_is_private(get_the_ID())): ?>
    <div class="members-only">
    <?endif;?>
        <h1 class="post_title"><?php the_title(); ?></h1>
        <?php the_content(); ?>
    <?php if (function_exists(member_access_is_private) && member_access_is_private(get_the_ID())): ?>
    </div>
    <?endif;?>
<?php endwhile; endif; ?>

You should also keep in mind that calls to the_content() from within the loop may instead function as though the_excerpt() was called if the administrator has configured the plugin to show excerpts for non-public content.

More Information

Requires: 3.3 or higher
Compatible up to: 3.3.2
Last Updated: 2011-12-8
Downloads: 125,841

Ratings

4 stars
4.3 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

0,1,0
100,2,2
100,3,3 100,2,2
100,2,2 100,1,1
75,4,3 100,1,1
100,8,8 100,1,1
100,2,2 83,6,5
83,6,5 75,4,3
0,1,0
100,1,1
100,1,1
100,1,1
67,9,6
100,3,3
100,1,1
100,1,1
100,1,1
71,7,5 100,2,2
100,1,1 100,1,1
100,1,1 100,6,6
100,1,1
60,5,3
67,3,2
0,1,0
67,3,2
100,2,2
50,4,2
0,1,0 100,2,2
100,1,1