evertiro / historical-redux2

A simple, easily extendable options framework for WordPress based on NHP Theme Options Framework.
http://reduxframework.com
Other
105 stars 43 forks source link

i don't understand what i am doing wrong? #135

Closed foxpcteam closed 11 years ago

foxpcteam commented 11 years ago

Hello, i have problem to show/print some value.

i have include in functions.php require_once('admin/options.php'); i have change in options.php the name to my theme args['opt_name'] = 'my theme';

in admin section i have upload image for the array i give 'id' => 'upload_logo',

when i try to print this image in my header.php it does not showing anything

i try

<?php echo $options['upload_logo']; ?>

echo $options[''upload_logo'];

and many other way to print but none of them working...

someone please help my to print all the values i need to show in the front end to users

Thanks

foxpcteam commented 11 years ago

some one?

evertiro commented 11 years ago

Have you defined a global for the options array?

foxpcteam commented 11 years ago

Hello ghost, i have add in functions.php $TEST=get_option('test1'); test1 is the name of my theme. now for global where i need to write it?

thanks

evertiro commented 11 years ago

it should be global $TEST=get_option('test1');, or you need to be defining $TEST as a global earlier in the script.