Advertisement
viktormorales

HTML to Wordpress (code)

Oct 20th, 2011
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. <?php
  2.     $cat_ID = get_cat_id("comedy");
  3.     $args = array( "posts_per_page" => 6, "cat" => 3 );
  4.     $posts = new WP_Query( $args );
  5.  
  6.     if ($posts->have_posts()) { ?>
  7.     <!-- SLIDER -->
  8.         <div class="slide">
  9.             <ul>
  10.             <?php while ($posts->have_posts()) { $posts->the_post(); ?>
  11.                 <li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_thumb("962x464"); ?></a></li>
  12.             <?php } # Cerramos el bucle WHILE?>
  13.             </ul>
  14.         </div>
  15.     <!-- /SLIDER -->
  16. <?php } # Cerramos el condicional IF ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement