I have two petition subpages under a campaigns page.
How do a get the 4 most recent petition subpages?
{% for child in page.campaigns limit:4 %}
Official response from Taylor Pineiro
Please see below for suggestions.
Share this post
Showing 6 reactions
Sign in with
Hines Digital
Certified Architect
Certified Expert
{% for child in page.children limit:4 %}
<h3><a href="">{{ child.headline }}</a></h3>
<p>{{ child.petition.intro | truncatewords:45 }} </p>
<a href="" class=“button”>Sign The Petition</a>
{% endfor %}