Member
Member
tunafish   2011-07-21, 16:56
#1

I am making a new template and want to add custom template functions.
I can't access Global object variables from there, for example:

`function test() {

print_r($_zp_current_album);

}`

I think I have to include a file in functions.php but I am not sure which?

Member
Member
tunafish   2011-07-21, 17:04
#2

OK, nevermind, found I needed to define the object with global.

`function test() {

global $_zp_current_album;

print_r($_zp_current_album);

}`

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.