We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Dec 4, 2019 9:44 PM
I am able to dynamically add latest posts to a resources list page, but I also need to add a list of the latest landing pages. Is there a way to do this?
Dec 5, 2019 7:51 AM
Hi @JosefinaT u want show the latest posts AND latest landing pages in one page/template. It is?
U can use this code to show lastest posts in one page/template:
{% set posts = blog_recent_posts('default', 5) %} {% for post in posts %} <h3><a href="{{ post.absolute_url }}">{{ post.name }}</a></h3> <img src="{{ post.featured_image }}" alt="{{ post.name }}"> {% endfor %}
Now, about landing pages, i dont know if is possible show lastest lps in one page/template, but i believe is betther create one custom module with repeater options, to add or remove itens in page/template.
Did this post help solve your problem? If so, please mark it as a solution.
Best regards! 🙂