daily pastebin goal
12%
SHARE
TWEET

Untitled

a guest May 16th, 2018 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.         $args = array( 'post_type' => 'main-slider' );
  3.         $the_query = new WP_Query( $args );
  4.  
  5.         if($the_query->have_posts()) :
  6.             while($the_query->have_posts()) : $the_query->the_post(); ?>
  7.                 <li><img class='img-full-width' src="<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID), 'thumbnail' ); ?>" /></li>
  8.             <?php endwhile;
  9.         else :
  10.             echo "<p>no hay contenido</p>";
  11.         endif;
  12.     ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top