In a query loop, I need to output 12 random posts. 6 with the 1001 tag and 6 with the 1002 tag. Any suggestions on how to achieve that before I fire up VS code?
Let's first define a custom function takes in the tag name string and an optional number of posts (with a default of 6) integer as arguments and returns an array of the IDs of x number of posts in the specified tag.