Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******** OLD CODE *********/
- <a href="<?php echo $full_size[0]; ?>" data-rel="prettyPhoto" title="">
- <img src="<?php echo $thumbnail[0]; ?>" alt="" width="627" height="400" />
- </a>
- /******** New CODE *********/
- <?php
- //check if first slider meta is blank
- if(get_post_meta($post->ID, 'victoria_portfolio_slider_1', true) =='') {
- //if blank show featured image
- ?>
- <a href="<?php echo $full_size[0]; ?>" data-rel="prettyPhoto" title="">
- <img src="<?php echo $thumbnail[0]; ?>" alt="" width="627" height="400" />
- </a>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment