Want more features on Pastebin? Sign Up, it's FREE!
Guest

Sudo Slider

By: a guest on Jun 6th, 2011  |  syntax: PHP  |  size: 0.40 KB  |  views: 65  |  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. function cor_etalage_add_shortcode() {
  2. ?>
  3. <div id="etalage"><ul>
  4. <?php
  5.         $the_query = new WP_Query(array(
  6.                 'post_type' => array(
  7.                         'portfolio'
  8.                 )
  9.         ));
  10.         while ($the_query->have_posts()) : $the_query->the_post();
  11. ?>
  12. <li><?php the_post_thumbnail('etalage'); ?></li>
  13. <?php endwhile; ?>
  14. <?php wp_reset_postdata(); ?>
  15. </ul></div>
  16. <?php
  17. }
  18. add_shortcode('etalage', 'cor_etalage_add_shortcode');
clone this paste RAW Paste Data