• chewzter

    (@chewzter)


    Hi,

    I want to drive more people to sign up on my site so I want to make today’s posts members only. I still want yesterday’s posts to be accessible to everyone and when today becomes yesterday for those posts to become automatically available to everyone.

    Is this possible without manually having to update the membership privileges on each post (I run a large news site with many posts each day and it’s not really feasible to do this manually)

    Thanks,

    Tom

Viewing 2 replies - 1 through 2 (of 2 total)
  • You could try using a couple of conditional:

    • test if the viewer is logged in
    • test if so x time has passed since the post was published

    If the above meets your criteria show the post; else show message to subscribe.

    Might only be a few lines of code to add, but it could also be theme dependent as to how much and in how many places the modifications will need to be added.

    Thread Starter chewzter

    (@chewzter)

    thanks for the pointer…

    I’ll have a go at trying this and post back if I have any success.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Make most recent posts members only’ is closed to new replies.