Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   Header & Footer Code for Single Page? (http://forum.bytesforall.com/showthread.php?t=15393)

GRF Sep 15, 2011 12:44 PM

Header & Footer Code for Single Page?
 
I'm using v3.6.4 and trying to put some PHP code in a seperate .php page but need to know what the code is to include the header and footer details so that the file looks just like a normal page with all the header,footer and other elements of the page.

I tried using the following but it doesn't work.

<?php get_header(); ?>

<?php
MY CODE
?>

<?php get_footer(); ?>

juggledad Sep 15, 2011 02:58 PM

start with a copy of index.php

GRF Sep 15, 2011 09:11 PM

Quote:

Originally Posted by juggledad (Post 72270)
start with a copy of index.php

Can you please be more specific? I tried this code below and complains of missing functions.

Contents of resourcepartners.php

<?php /* get all options: */
# error_reporting(-1);

list($bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2, $bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();

get_header();

extract($bfa_ata);

MY PHP CODE

?>

<?php get_footer(); ?>


All times are GMT -6. The time now is 02:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.