Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <article id="entradas">
- <?php
- $args = "posts_per_page=4&cat=38";
- $query = new WP_Query($args);
- if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); ?>
- <h3 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Enlace permanente a <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
- <article id="thumbs">
- <?php
- if ( has_post_thumbnail() ) {
- the_post_thumbnail();
- }
- ?>
- </article>
- <?php the_excerpt(); ?>
- <?php endwhile; else: ?>
- <p><?php _e('No hay entradas .'); ?></p>
- <?php endif; ?>
- </article>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement