View Single Post
Old 11-03-2011, 04:55 PM   #2
MickMcGeough
First Line Centre
 
MickMcGeough's Avatar
 
Join Date: Oct 2002
Location: Calgary
Exp:
Default

- bloginfo('template_directory') echoes the current theme's root directory (usually something like "{webroot}/wp-content/themes/{theme_name}")
- you should have a directory called "banners" there.
- each post that uses this template should have a custom field called "page_banner". The value of this field should be the filename of the image you want (just the name, not the path).

ETA: You shouldn't need to add a new template to add a new page, unless none of the layouts of the existing templates does what you need. Basic sites shouldn't need more than a few templates.
__________________


Last edited by MickMcGeough; 11-03-2011 at 04:58 PM.
MickMcGeough is offline   Reply With Quote
The Following User Says Thank You to MickMcGeough For This Useful Post: