I have been trying for a day now to print all the images stored in a directory, however at the minute i can only get one to appear.
could anyone point me in the right direction?
function wptuts_setting_logo_preview() { $wptuts_options = get_option( 'theme_wptuts_options' ); $user_id = get_current_user_id(); $files = glob('wp-content/uploads/'.$user_id.'/*'); ?> <div id="upload_logo_preview" style="min-height: 100px;"> <img style="max-width:100%;" src="<?php echo esc_url( $wptuts_options['logo'] ); ?>" /> </div> <?php } ?>