• garbonzo

    (@garbonzo)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    (@gimperdaniel)

    I didn’t ask the original question, but that works. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Global variables for use in the sidebar?’ is closed to new replies.