Hello I am trying to get related posts working but i am having problem getting the most recent one to show in fact i am getting ones dated from out side the
Hey, @simonp Thanks for your question. Have you tried adding the order_by parameter? — HubL functions. Here’s the definition “orderBy: order results by a specific property. For example, orderBy=email”
Thanks for the reply i checked through Hubspot function page doesn;t seem have any mention of order_by. Is it something you add within the related_blog_posts parameter eg
{% macro recent_post_two(post) %}
{% set post = post|sort(False, False, ‘publish_date’)%} {{ post.publishDate|datetimeformat(‘%B %e, %Y’) }}