I’m attempting to create a loop for a ticker tape on my home page and failing miserably. I need to fetch the date and title of the first three recent subpages.
File structure of subpage:
content > 2-visit > 1-news-events-and-offers > {subpages in here}
<div class="marquee3k"
data-speed="0.5" → play around here
data-pausable="bool" → Pause marquee on hover>
<!--you can even have inline images,
or any kind of html -->
<ul class="tickers">
<li>
<a href="visit/news/news-watford-weekender-2018">
<span>5 Oct</span>
Watford hosts a weekend of offers and events
</a>
</li>
<li>
<a href="visit/news/news-free-tennis-sessions-in-watford.">
<span>19 Sep</span>
Free tennis sessions in Watford
</a>
</li>
<li>
<a href="visit/news/news-learn-to-cook.html">
<span>19 Sep</span>
Learn to cook your home grown spuds and veggies with The Grove’s Head Chef
</a>
</li>
</ul>
</div>
