|
#1
Sep 23, 2011, 02:55 PM
|
|
[SOLVED] Stand Alone Page with PHP Code?
I need to add a page that has all the elements (i.e. header, widgets, footer, etc.) with custom PHP added to the center column (where post article content code goes)
I tried this code below but complains of missing functions. I'm using v3.6.4
Here is my source in my .PHP file.
<?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(); ?>
|
#2
Sep 23, 2011, 03:13 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
what functions does it say it is missing?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#3
Sep 23, 2011, 06:00 PM
|
|
Fatal error: Call to undefined function bfa_get_options() in /home/tsfl/public_html/healthyweightlosssystem.net/linkpartners.php on line 4
|
#4
Sep 23, 2011, 06:26 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
are you using this as a template or a pagexx.php file?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#5
Sep 23, 2011, 06:35 PM
|
|
No template, just pagexx.php file.
I'm putting some link partner .php code in it and can't uses the ExecPHP plug-in because it conflicts with another plun-in I use.
|
#6
Sep 23, 2011, 07:30 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
I'd have to see the exact code to be of any help
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#7
Sep 23, 2011, 09:31 PM
|
|
?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);
echo "MY PHP CODE"
?>
<?php get_footer(); ?>
|
|