I'm trying to display a list of 5 random 'related' posts based on the custom taxonomy of the post that's being viewed.
For example, when a visitor is viewing an advice post (custom post type 'advice') that has been assigned to the 'sponsorship' taxonomy (custom taxonomy slug 'advice_category/sponsorship'), I want to output 5 random 'sponsorship' posts in an unordered list.
The code needs to sit within the loop of the single-advice.php template.
Any help would be hugely appreciated!
Thanks in advance!