Page 1 of 1

Latest 30 posts free and others only for members

PostPosted: April 11th, 2011, 3:17 am
by valerio123
Hi guys,

I just upgrade my s2member to the Pro version.

I'm studing the documentation but I'm not very able with php ... :oops:

I'd like a little help...!

In your opinion, is it possible that the latest 30 posts are free and the others are only for members?

How can I do? Can you help me please? Have you any suggestions for me?

Thanks, :)

Re: Latest 30 posts free and others only for members

PostPosted: April 12th, 2011, 7:29 pm
by Jason Caldwell
Thanks for the great question.

Sorry. This is not a feature that is included by default. I'll see what we can do in a future release though. Until then, this type of custom functionality would need to be achieved with s2Member's Simple and/or Advanced Conditionals. You'll find the documentation on this inside your Dashboard, under: s2Member -> API Scripting -> Advanced Conditionals.

Re: Latest 30 posts free and others only for members

PostPosted: April 12th, 2011, 8:27 pm
by Cristián Lávaque
Valerio, I just wanted to add that you could also use Advanced Query Conditionals, also under API / Scripting.

And you will need to use WordPress functions to figure out if the post being viewed is one of the last 30 or not. https://codex.wordpress.org/Function_Re ... _Functions

Re: Latest 30 posts free and others only for members

PostPosted: April 13th, 2011, 2:19 am
by valerio123
Hi Jason, Hi Cristián, thanks for your help. ;)