• Can’t seem to figure out the right way to link to an image that is inside the uploads folder.

    I’ve been trying to use this:

    <?php $upload_dir = wp_upload_dir(); ?>
    <?php echo $upload_dir['baseurl']; ?>

    which outputs:

    https://localhost/wordpress/theme/files/image1.jpg

    If I go to that url it just gives a 404. Any ideas?

  • The topic ‘uploaded image url’ is closed to new replies.