Skip to content

Instantly share code, notes, and snippets.

@sumanahmed
Created January 8, 2016 06:33
Show Gist options
  • Save sumanahmed/1d3ae85c34046d145f4b to your computer and use it in GitHub Desktop.
Save sumanahmed/1d3ae85c34046d145f4b to your computer and use it in GitHub Desktop.
<?php if ( function_exists( 'get_option_tree') ) : if( get_option_tree( 'your_tree_id') ) : ?>
<a href="<?php bloginfo('home'); ?>"><img src="<?php get_option_tree( 'your_tree_id', '', 'true' ); ?>" alt=""/></a>
<?php else : ?>
<a href="<?php bloginfo('home'); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/logo.jpg" alt=""/></a>
<?php endif; endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment