I’ve been doing some research so I thought I would pose my question more carefully.
I have an online magazine which is WordPress based. I want to provide a teaser in my articles and then require the reader to be a paid subscriber to read the rest of the article. Of course, S2 makes that ease and I would simple need some code like:
Here is the teaser text …
[s2If !current_user_can(access_s2member_level1)]
Here is the text to tell them to login and/or subscribe …
[/s2If]
[s2If current_user_can(access_s2member_level1)]
Here is the premium text …
[/s2If]
Tried this and it works great!
What I want to do now is add an OR to each of these that is date based that will cause the premium portion to become visible after 90 days. This will allow Google to crawl the entire article after 90 days and make it searchable. Yes, I understand that it also means that anyone can see the full content after 90 days, but that’s okay too. So, I think it will look something like:
[s2If !current_user_can(access_s2member_level1) OR
(today’s_date > post_date + 90 days) ] <– My pseudo code.
What should this be?
Clearly, the expression (today’s_date > post_date + 90 days) is not the correct code. Can someone tell me what this should be?
Finally, I will also need a date based AND expression for the first S2 code block:
[s2If !current_user_can(access_s2member_level1) AND
(today’s_date <= post_date + 90 days) ]
Thoughts?
Thank you in advance,
Bill
soaringcafe.com