Advertisement
Guest User

WP Custom Fields

a guest
Nov 28th, 2012
144
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div id="col-two">
  2. <?php if(get_post_meta($post->ID, 'include-image-3-01', true) ||
  3.             get_post_meta($post->ID, 'include-image-3-02', true) ||
  4.             get_post_meta($post->ID, 'include-image-3-03', true) ||
  5.             get_post_meta($post->ID, 'include-image-3-04', true) ||
  6.             get_post_meta($post->ID, 'include-image-3-05', true) ||
  7.             get_post_meta($post->ID, 'include-image-3-06', true) ||
  8.             get_post_meta($post->ID, 'include-image-3-07', true) ||
  9.             get_post_meta($post->ID, 'include-image-3-08', true) ||
  10.             get_post_meta($post->ID, 'include-image-3-09', true) ||
  11.             get_post_meta($post->ID, 'include-image-3-10', true)): ?>
  12.            
  13.     <div class="include-images">
  14.         <?php if(get_post_meta($post->ID, 'include-image-3-01', true)): ?>
  15.         <img class="col-two-img-3 in01" src="<?php echo get_post_meta($post->ID, 'include-image-3-01', true); ?>" alt="site_naam">
  16.         <?php endif; ?>
  17.         <?php if(get_post_meta($post->ID, 'include-image-3-02', true)): ?>
  18.         <img class="col-two-img-3 in02" src="<?php echo get_post_meta($post->ID, 'include-image-3-02', true); ?>" alt="site_naam">
  19.         <?php endif; ?>
  20.         <?php if(get_post_meta($post->ID, 'include-image-3-03', true)): ?>
  21.         <img class="col-two-img-3 in03" src="<?php echo get_post_meta($post->ID, 'include-image-3-03', true); ?>" alt="site_naam">
  22.         <?php endif; ?>
  23.         <?php if(get_post_meta($post->ID, 'include-image-3-04', true)): ?>
  24.         <img class="col-two-img-3 in04" src="<?php echo get_post_meta($post->ID, 'include-image-3-04', true); ?>" alt="site_naam">
  25.         <?php endif; ?>
  26.         <?php if(get_post_meta($post->ID, 'include-image-3-05', true)): ?>
  27.         <img class="col-two-img-3 in05" src="<?php echo get_post_meta($post->ID, 'include-image-3-05', true); ?>" alt="site_naam">
  28.         <?php endif; ?>
  29.         <?php if(get_post_meta($post->ID, 'include-image-3-06', true)): ?>
  30.         <img class="col-two-img-3 in06" src="<?php echo get_post_meta($post->ID, 'include-image-3-06', true); ?>" alt="site_naam">
  31.         <?php endif; ?>
  32.         <?php if(get_post_meta($post->ID, 'include-image-3-07', true)): ?>
  33.         <img class="col-two-img-3 in07" src="<?php echo get_post_meta($post->ID, 'include-image-3-07', true); ?>" alt="site_naam">
  34.         <?php endif; ?>
  35.         <?php if(get_post_meta($post->ID, 'include-image-3-08', true)): ?>
  36.         <img class="col-two-img-3 in08" src="<?php echo get_post_meta($post->ID, 'include-image-3-08', true); ?>" alt="site_naam">
  37.         <?php endif; ?>
  38.         <?php if(get_post_meta($post->ID, 'include-image-3-09', true)): ?>
  39.         <img class="col-two-img-3 in09" src="<?php echo get_post_meta($post->ID, 'include-image-3-09', true); ?>" alt="site_naam">
  40.         <?php endif; ?>
  41.         <?php if(get_post_meta($post->ID, 'include-image-3-10', true)): ?>
  42.         <img class="col-two-img-3 in10" src="<?php echo get_post_meta($post->ID, 'include-image-3-10', true); ?>" alt="site_naam">
  43.         <?php endif; ?>
  44.     </div>
  45. <?php endif; ?></div>
Advertisement
RAW Paste Data Copied
Advertisement