Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Hiding pages

UserPost

9:39 am
March 20, 2010


aicos

Member

posts 3

1

Hi

I'm looking for a way of hiding certain wp pages after the user has logged in. The page needs to be displayable before the user it logged in. I understand its possible to only *show* pages for certain wp-roles but not the other way around. Is this possible with Role Scoper?

Thanks in advance.

1:56 pm
March 20, 2010


aicos

Member

posts 3

2

That was a really bad subject and I can't change it. Hope someone replys…

8:10 pm
March 20, 2010


Kevin

Admin

posts 2503

3

Yes, an "Anonymous" group can be enabled specifically for this purpose. It is not necessary or recommended unless you need a post/page to be displayed only to anonymous (unlogged) readers.

First, add this to wp-config.php:

define( 'SCOPER_ANON_METAGROUP', true );

Then set the pages in question to Private visibility, and give the Private Page Reader role to the group "[Anonymous]". In the Page edit form, the role assignment box is simply captioned as "Readers".

11:30 am
March 21, 2010


aicos

Member

posts 3

4

Thanks Kevin. Thats exactly what I needed!


About the Agapetry forum

Currently Online:

12 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1247

Posts: 5656

Members:

There are 1259 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin