WordPress.org

Ready to get started?Download WordPress

Forums

Upload an image and reference it with the same name always (1 post)

  1. calebo
    Member
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic