1

Im trying to find a way to pull random images from either a post or wordpress's built in image library. Im not sure how to query image uris from a post or the media library - is there a tag or method that I can adopt?

1 Answer 1

0

I'm not sure if this is exactly what you're looking for, but you might want to check out: get_attached_media() and wp_get_attachment_url().

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.