I am loading single images into a post and calling their source from my custom post type template
src: "<?php echo get_post_meta($post->ID, 'single_photo', true); ?>"
I want to pull an image from a random post only from that post type [PHOTO]. I know the url will be
mysite.com/photo/-random-photo-, how could I grab a radom meta field?