ramtripper
BANNED
- Jul 31, 2010
- 426
- 274
How do I make this function work without the "if" statement??
<?php if(get_post_meta($post->ID, 'my_post_image', true)): ?>
<img src="<?php echo get_post_meta($post->ID, 'my_post_image', true); ?>" alt=""/>
<?php else: ?>
<?php endif; ?>
Omg, i will love you for helping me with this. I know it's simple, im just not too familiar with php..
not exactly the same as excel.. LOL
<?php if(get_post_meta($post->ID, 'my_post_image', true)): ?>
<img src="<?php echo get_post_meta($post->ID, 'my_post_image', true); ?>" alt=""/>
<?php else: ?>
<?php endif; ?>
Omg, i will love you for helping me with this. I know it's simple, im just not too familiar with php..
not exactly the same as excel.. LOL