wordpress, trying to pass a php variable to sidebar.php (called through a function)
Posted on 2010-11-22
On my single.php in my theme, I run a php script that ends up with two variables, like this:
I need to pass that information to the sidebar.php. sidebar.php is called and positioned into the single.php page like this:
<?php get_sidebar(); ?>
and apparently the php variables are not passed to it. If I try to echo them, I get no results.
Thanks for any help, Chris