Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $cat_ID = get_cat_id("comedy");
- $args = array( "posts_per_page" => 6, "cat" => 3 );
- $posts = new WP_Query( $args );
- if ($posts->have_posts()) { ?>
- <!-- SLIDER -->
- <div class="slide">
- <ul>
- <?php while ($posts->have_posts()) { $posts->the_post(); ?>
- <li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_thumb("962x464"); ?></a></li>
- <?php } # Cerramos el bucle WHILE?>
- </ul>
- </div>
- <!-- /SLIDER -->
- <?php } # Cerramos el condicional IF ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement