| User | Post |
|
9:08 am May 20, 2011
| AD
Member
| | AD | |
|
| posts 3 |
|
|
I admin a site which restricts content to logged-in users (premium). Currently each post is designated for the 'Readers' group of 'WP Subscriber'. Non-subscribers get the teaser text.
My question is how to allow occasional "free" posts to be visible by all, whether a subscriber or visitor? No teaser text would be tied to these posts, and anyone logged in or not logged in would be able to read these posts.
Forgive me if I've overlooked the documentation, and this seems to be a simple setting, but with so many options I have been unable to determine the answer here.
Thanks in advance,
AD
|
|
|
9:38 am May 20, 2011
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
Are you using Category Restrictions to restrict the content?
If so, you can override the Category Restrictions for specific posts as follows:
1) add the following to wp-config.php:
define( 'SCOPER_ANON_METAGROUP', true );
2) Assign a Reader role to the [Anonymous] group for desired post(s)
Or if your read restriction is based simply on "Private" post visiblity, just set the visibility to Public for desired posts.
|
|
|
1:24 pm May 20, 2011
| AD
Member
| | AD | |
|
| posts 3 |
|
|
Thank you for the quick reply Kevin.
Currently we do not use Category Restrictions to restrict the content, instead we just utilize the Group, like this:

|
|
|
1:27 pm May 20, 2011
| AD
Member
| | AD | |
|
| posts 3 |
|
|
…at least I don't think we use Category Restrictions to restrict the content. All posts are marked 'Public' visibility.
Are you saying I would go in and create a new Group '[Anonymous]' and then assign a Reader Role to them?
Also, does adding that code snippet to the wp-config.php file have any other effects that you know of?
Thank you!
|
|
|
7:03 am May 23, 2011
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
AD said:
Are you saying I would go in and create a new Group 'Anonymous' and then assign a Reader Role to them?
No, you don't create the group. The wp-config.php code snippet causes it to be created for you, as a "metagroup" containing only anonymous readers.
Also, does adding that code snippet to the wp-config.php file have any other effects that you know of?
It just enables Reader role assignments to the Anonymous metagroup, and application of those role assignments to filter viewing access when the current user is not logged in.
|
|