WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.