Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 10th, 2012  |  syntax: PHP  |  size: 0.23 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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>