[wp-hackers] custom header on page template
will at itsananderson.com
Wed Mar 9 20:17:58 UTC 2011
Actually, I'm not sure that's true. See
get_template_part() != get_header() because get_header calls the
'get_header' action, which I'm pretty sure many plugins utilize.
you may want to check that header-photo.php is in the root of your theme,
and double check that you didn't name it header_photo.php or something.
On Wed, Mar 9, 2011 at 3:10 PM, Chip Bennett <chip at chipbennett.net> wrote:
> 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
> > 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
> > solution.
> > Thanks.
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers