Forums
Home / Plugins / Global variables for use in the sidebar?
(@garbonzo)
16 years ago
Wondering how to get my dynamic sidebars to be able to access my global variables? I would love for a widget to be able to use a global variable that I declare in header.php
Thanks
(@mfields)
Thy using the following in your theme pages instead of:
get_header(); get_sidebar(); get_footer();
use:
include (TEMPLATEPATH . "/header.php"); include (TEMPLATEPATH . "/sidebar.php"); include (TEMPLATEPATH . "/footer.php");
(@gimperdaniel)
I didn’t ask the original question, but that works. Thanks