• Resolved zeckdude

    (@zeckdude)


    I have a site where each page has 3 photos in the header. I want the user to be able to switch out the photos that appear on each pages header.

    I’m looking for a wordpress plugin which will allow the admin to upload photos to a specified location for a certain page.

    Does anyone know of a wordpress plugin with that sort of functionality?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m not sure a plugin is what you need here. I think it might be easier to to with custom fields – just have 3 custom fields per page, pull the image URLs out and use them in the page theme.

    Thread Starter zeckdude

    (@zeckdude)

    That sounds like exactly what I am looking for. Do you know of a tutorial that explains this process?

    I don’t know of a tutorial, but I think all you need to add to your template is something along these lines – you’ll need three myImageCustomField keys:

    <?php if ( get_post_meta($post->ID, 'myImageCustomField1', true) ) : ?>
            <img src="<?php echo get_post_meta($post->ID, 'myImageCustomField1', true) ?>" />
    <?php endif; ?>
    Thread Starter zeckdude

    (@zeckdude)

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin to upload a photo to a page’ is closed to new replies.