# Randomising Related Posts For Blog

**URL:** <https://community.hubspot.com/t/randomising-related-posts-for-blog/18879>\
**Category:** CMS Development\
**Tags:** navigation, css, content\
**Created:** [February 19, 2020, 12:23pm UTC](https://community.hubspot.com/t/randomising-related-posts-for-blog/18879 "2020-02-19T12:23:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrr24](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jrr24/32/2679_2.png) [@jrr24](https://community.hubspot.com/u/jrr24)\
**Post date:** [February 19, 2020, 12:23pm UTC](https://community.hubspot.com/t/randomising-related-posts-for-blog/18879/1 "2020-02-19T12:23:48Z")

</div>

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](https://blog.v-hr.com/blog/4-reasons-why-start-up-airlines-fail-or-succeed)

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![sharonlicari](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sharonlicari/32/101479_2.png) [@sharonlicari](https://community.hubspot.com/u/sharonlicari)\
**Post date:** [February 21, 2020, 12:03pm UTC](https://community.hubspot.com/t/randomising-related-posts-for-blog/18879/2 "2020-02-21T12:03:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![laxmi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/laxmi/32/31851_2.png) [@laxmi](https://community.hubspot.com/u/laxmi)\
**Post date:** [February 24, 2020, 6:09pm UTC](https://community.hubspot.com/t/randomising-related-posts-for-blog/18879/3 "2020-02-24T18:09:01Z")

</div>

you can use suffle JS for this one

---

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [February 24, 2020, 10:46pm UTC](https://community.hubspot.com/t/randomising-related-posts-for-blog/18879/4 "2020-02-24T22:46:36Z")

</div>

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](https://alyssawilie.com/blog/how-to-hubl/related-posts-for-your-hubspot-blog)  
Hope this helps!
