Randomising Related Posts For Blog

I was wondering if anybody could help me?

I have created a ‘more posts you would like to see’ section at the bottom of our blog page that sorts via the blog tag.

It only shows the three most recent posts. Does anyone know a way we can completley ramodomise this so it pulls different options under the same tag so that the same options don’t keep appearing each time?

See current blog - 4 Reasons Why Start-Up Airlines Fail or Succeed

Thank you in advance!

Hi @jrr24

thank you for the information provided, this will help the experts. I will tag so they will be able to advise you.

Hey @narmstrong @DanielSanchez could you please share your knowledge with @jrr24?

Thank you & Happy Friday

Sharon

you can use suffle JS for this one

Hey @jrr24 ,

Since you’ve said your section is only showing the three most recent posts I imagine you’re using either the blog_recent_posts or blog_recent_tag_posts function?
If you use the related_blog_posts function instead the posts are “generated from a relevancy score based on a comparison of the set parameter values against posts matching these parameters, or relating to the post the HubL tag appears on”. This doesn’t compeletely randomize it (aka the posts change on refresh of the page) if that’s what you’re looking for, but you should no longer see the same related posts on every post.
Here’s a tutorial I wrote on how to use the related_blog_posts function
https://alyssawilie.com/blog/how-to-hubl/related-posts-for-your-hubspot-blog
Hope this helps!