[wp-hackers] custom header on page template
chip at chipbennett.net
Wed Mar 9 20:10:17 UTC 2011
get_header() only loads header.php
Try using get_template_part():
get_template_part( 'header', 'photo' );
On Wed, Mar 9, 2011 at 2:05 PM, Martin Trtílek <trta911 at gmail.com> wrote:
> Hi all :-)
> i have one page template called ...for example photo and additional header
> called header-photo.php.
> If i try write get_header('photo'); on photo page template so page still
> loads my default header (header.php) but i want to load the photo header.
> Is there way, how to accomplish this? I'm search on web but wit no success
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers