WordPress.org

Support

Support » How-To and Troubleshooting » Upload an image and reference it with the same name always

Upload an image and reference it with the same name always

  • I have an image embedded on a page, everytime the user wants to update this image, they are ‘manually’ uploading an image of the same file name via ftp replacing the existing one.

    ie:
    <img src=”<?php bloginfo(‘template_url’); ?>/images/lightbox_c.jpg” alt=”” />

    Replace ‘lightbox_c.jpg’ with a variable, and allow the user to upload via the media library, but is always reference in my code template as a specific variable?

  • The topic ‘Upload an image and reference it with the same name always’ is closed to new replies.
Skip to toolbar