Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to let my customer choose any image (in my backend) and then it will be displayed in my header.php. i've found Image Widget, but it just show images in the sidebar. I want something like:

<?php wp_plugin_that_shows_a_simple_image(); ?>

In my header. Which plugin could I use? I've searched a lot. WP 3. Thank you.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

WordPress contains built-in support to select header images for a theme. You only have to indicate that your theme supports this, by calling add_custom_image_header(). See the Twenty Ten initialization for details.

In your theme's header.php you then call header_image() to get the current header image.

share|improve this answer
    
If i want to put this image in another file, does it still work? Thank you. –  thom May 27 '11 at 16:31
    
@thom: You mean putting the header_image() in another file than header.php? That is no problem. You can call it where you want. –  Jan Fabry May 27 '11 at 17:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.