I'm building my friends blog and he asked me a rather odd request. He wants the latest five blog posts to be visible to non-registered members but no others.
I know how to do this on the blog list based on the page count, but if the pages are indexed, someone guesses the blog titles, etc there will be nothing stopping people viewing that content.
Is there some way that I could restrict access to blog pages that aren't the latest five based on is_user_logged_in() or something to that effect?
I really have no idea where to start, so if someone could point me in the right direction, it would be much appreciated.
Thanks in advance!