Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $oneimg = get_post_meta($post->ID, 'Oneimg', true);
- $twoimg = get_post_meta($post->ID, 'Twoimg', true);
- $threeimg = get_post_meta($post->ID, 'Threeimg', true);
- if($oneimg != '' || $twoimg != '' || $threeimg != '') {
- // there is at least one image
- ?>
- <h1>Check this Cool Photos of <?php the_title(); ?></h1>
- <?php if($oneimg != '') : ?>
- <!-- code for oneimg here -->
- <img src="<?php echo get_post_meta($post->ID, 'Oneimg', true); ?>" class="trailer-gallery-img" title="<?php the_title(); ?>" alt="<?php the_title(); ?>" />
- <?php endif; ?>
- <?php if($twoimg != '') : ?>
- <!-- code for $twoimg here-->
- <img src="<?php echo get_post_meta($post->ID, 'Twoimg', true); ?>" class="trailer-gallery-img" title="<?php the_title(); ?>" alt="<?php the_title(); ?>" />
- <?php endif; ?>
- <?php if($threeimg != '') : ?>
- <!-- code for $threeimg here -->
- <img src="<?php echo get_post_meta($post->ID, 'Threeimg', true); ?>" class="trailer-gallery-img" title="<?php the_title(); ?>" alt="<?php the_title(); ?>" />
- <?php endif; ?>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement