I am working on my website and I create a custom page to show paid posts but I cannot find the correct way to show it, this is my code:
{{!< default}}
<div class='c-archive'>
<h1 class='c-archive__title'>Pro Lessons</h1>
</div>
<div class='o-grid'>
{{#get "posts" limit="all" filter="visibility:paid"}}
{{#foreach posts}}
{{> post-card-custom }}
{{/foreach}}
{{/get}}
</div>
works for other pages like free posts and featured, but continue without work on the paid posts, I don`t know how to solve this if my code is wrong, then the other pages don’t would be working, but they are working, so I think that maybe is a problem with the helper or something similar.
This is the solution
{{!< default}}
{{#post}}
<div class='c-archive'>
<h1 class='c-archive__title'>Pro Lessons</h1>
</div>
<div class='o-grid'>
{{#get 'posts'}}
{{#foreach posts visibility='all'}}
{{#has visibility="paid"}}
{{> post-card-custom }}
{{/has}}
{{/foreach}}
{{/get}}
</div>
{{/post}}