[Plugin: OptionTree] If else
-
Hi Derek
I’m trying to do the following:
<?php if ( function_exists( 'get_option_tree') ) : if( get_option_tree( 'file_upload') ) : ?> <img src="<?php get_option_tree( 'file_upload' ); ?>" /> <?php else : ?> <h1> No Options, Man!</h1> <?php endif; endif; ?>
But if file is uploaded, no value returns. In html code I see only
img src=""
without URL to the image.I’m not very familiar with php, so I would like to ask you to show me working example, please. ??
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: OptionTree] If else’ is closed to new replies.