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).
Mar 8, 2021 9:48 AM
I'd like to get today's day to use when displaying related psots:
{% related_blog_posts start_date="2021-02-08", end_date="2018-06-10", limit=10 callback="blog_post_formatter" %}
I'd like to dynamically generate the start date. Is that possible in HUBL?
Solved! Go to Solution.
Mar 8, 2021 5:31 PM
Wouldn't using blog_recent_tag_posts be the same thing? Get related posts (by tag), sorted by most recent first (i.e. today).
Mar 9, 2021 12:50 PM
Thank you guys for everything. I appreciate your assistance. All is sorted now.
Mar 8, 2021 2:33 PM
Hi @Konclude those parameters are not available in that function.
Am I understanding this correctly. You want to loop through only a particular period of time and always have the most recent be the current day.
@piersg , @amwilie what do you think?
![]() | Make sure to subscribe to our YouTube channel where you can find the HubSpot Community Developer Show |
Mar 8, 2021 5:31 PM
Wouldn't using blog_recent_tag_posts be the same thing? Get related posts (by tag), sorted by most recent first (i.e. today).