[Casper] Previewing member only content on homepage

Hello, I was searching through the forum trying to find if Casper could show members only posts on the homepage. I wanted that option for non-members. Slowly but surely I found a quick fix. In the Lyra theme you have the index.hbs file, and inside it says:

{{#foreach posts visibility=“all”}}

To me that’s alien language but what’s missing in Casper is the visibility=“all” part.

Plug in that bit of code inside of Casper’s index.hbs file and you can preview the content on the homepage. That way a visitor can see it, click on it but notice he or she will still have to become a member to read it in full.