I have created a blog and in the panel when a user adds an article they can choose whether the article is a blog post, a resource, or both.
I want to create a resources page which displays a list of all the articles which are classed as ‘resources’ or ‘both’.
Can someone advise me if this can be done and point me in the right direction?
Sorry, I should have realised this is easier than I thought.
In case anyone else is as daft as me, I just used…
$page = page(‘blog’);
foreach($articles = $page->children()->listed()->flip()->paginate(10) as $article): etc.