Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Filter posts to show restricted only?

UserPost

7:27 am
March 28, 2011


mwillson

New Member

posts 1

1

I'm looking at using Role Scoper for a site that has a combination of open and subscriber-only content.

Ideally there would be a way to query posts to show posts in a certain category AND that are restricted (and not the non-restricted posts) - so when combined with the teaser, I could:

- have a Subscriber-only content section on the Homepage

- list some juicy content titles & excerpts

- use this as a way of tempting non-Subscribers to sign up


Is this something that RS can do?

Any thoughts / help much appreciated.


12:17 pm
March 28, 2011


Kevin

Admin

posts 2503

2

The simplest solution would be to just give all your restricted posts a visibility of private. Then you could just include post_status=private as a query arg. If that's not possible and you're comfortable investigating the schema and writing some SQL, you can always construct your own SQL query, joining wp_role_scope_rs with wp_posts and/or wp_term_taxonomy.


About the Agapetry forum

Currently Online:

12 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1246

Posts: 5654

Members:

There are 1257 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