Help with php bloginfo(‘template_directory’);
-
<?php $thumb = get_post_meta($post->ID,'Thumbnail', true); $thumb = ( !empty( $thumb ) ) ? $thumb : '/images/whitebg.jpg'; print '<img src="' . $thumb . '" width="80" height="80" alt="" />'; ?>
I’m doing a Theme, but I can’t link to the image theme folder like this:
<?php bloginfo('template_directory'); ?>/images/whitebg.jpg
is there any other way to do that?
Thanks
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Help with php bloginfo(‘template_directory’);’ is closed to new replies.