SHARE
TWEET

Untitled

a guest Oct 10th, 2012 37 Never
  1. <?php
  2. $gallerySliderMap = array(
  3.     24 => 'slider1',
  4.     26 => 'slider2',
  5.     // etc...
  6. );
  7. $slider = $gallerySliderMap[$post->ID];
  8. ?>
  9. <div class="gallery">
  10.     <?php echo do_shortcode("[rev_slider {$slider}]"); ?>
  11. </div>
RAW Paste Data
Top