Epi,
Thank you for your business first of all. Good question too. For archives like categories, tags, dates, and things like our staff groups, WordPress doesn’t have a “featured image” function like it does for pages and posts. Personally I would love for that ability to make it into the core. After all, you can add descriptions so why not an image too?
That said, if you only need one staff group, then use the page template. You can add in a featured image there that will appear in the header.
If you need to use more than one staff group and want to have header images for them, you can do that. Here’s how:
- Go to the Media section and select Add New.
- Upload your file. Once the upload is finished, click edit. On the right hand side of that screen, you’ll see a box for the file URL. Copy that URL.
- Next go to the Appearance section and select Edit.
- From the list of files on your right, choose media-default.php
- Scroll down until you see this:
<?php } else { ?>
- Right above that paste this:
- Then replace the http://yoursite.com/image.jpg with the URL to your image you copied earlier.
- Save your changes.
That will give you an image to use above all your staff groups. If you want to use a separate image for each one, that can be done too. Instead of the code snippet above, use this:
Then change the technik and other to the name of the staff groups you’ll be using. Then pick a different image URL to use for each one.
If you have any questions or trouble, let me know.
Thanks again,
Bill