How to get random post attachments WordPress

Get random post attachments from WordPress posts (e.g image attachments).

Functions

I'm going to use the following functions. You can add, remove or change parameters if you wish to:

Full Code

Straightforward code with comments.

8 comments

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*