have a small problem, i have a wordpress blog and currently when i create a page i tell it to pull the header <?php get_header(); ?> Code (markup): , but i have created a different header and labeled it header1, so i used this code <?php get_header1(); ?> Code (markup): but for some reason its not pulling the file, and instead it is has this error Fatal error: Call to undefined function get_header1() in /home/content/s/b/u/sbuell20/html/wp-content/themes/TechBlog/phpld.php on line 7 Code (markup): . So i guess im wondering whether i need to put code somewhere other than on the page in order to pull the header1.php file or what. Help would be great. thanks!
I don't know WP TOO much as I only have a couple sites with it, but I would imagine just copy/paste the get_header() function right next to the original, make the slight change, and then change the code within. Like I said though, I don't have it all mapped out in my head.
Replace <?php get_header(); ?> with <?php include (TEMPLATEPATH . '/header1.php'); ?> Treat include tags like functions, not includes. This explains it in more detail: Wordpress Include Tags