SHARE
TWEET

Sudo Slider

a guest Jun 6th, 2011 65 Never
  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');
RAW Paste Data
Top