Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Accessing PHP variables after header sent out


  #1  
Old Oct 2, 2009, 11:14 AM
twola
 
27 posts · Sep 2009
I am designing a custom site using the Atahualpa headers on a PHP page and cannot seem to access my variables in side bar.

For example my page is set this way:

BEGIN PHP PAGE

$a=1;

PHP Code:
include (TEMPLATEPATH '/functions/bfa_get_options.php');
get_header(); 
get_footer();

END PHP PAGE


How do I access $a in the side bar code ?

Thanks
  #2  
Old Oct 2, 2009, 11:24 AM
twola
 
27 posts · Sep 2009
When I do:

global $a; in the side bar, I can access it.

Is that the best way?

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Would like image map added to header.php to only appear on the static homepage southrules Header configuration & styling 1 Aug 27, 2009 11:14 AM
placing favicon code into header.php AlbaSurf Header configuration & styling 1 Aug 26, 2009 08:55 PM
Add custom php/js menu below header dmtompki Header configuration & styling 6 Jun 23, 2009 10:03 AM
[SOLVED] messed up header.php and footer.php monochrome Header configuration & styling 0 Jun 20, 2009 02:16 PM
Firefox shows 404 Error when accessing pages joehandsome Atahualpa 3 Wordpress theme 3 May 6, 2009 08:40 AM


All times are GMT -6. The time now is 03:52 PM.


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