Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul class="default-list">
- <?php
- global $post;
- $args = array( 'numberposts' => 4, 'Notícias' => 'noticias' );
- $posts = get_posts( $args );
- foreach( $posts as $post ): setup_postdata($post);
- ?>
- <li>
- <div class="image">
- <a href="<?php the_permalink() ?>" class="image-cover" style="background-image: url('<?php the_post_thumbnail_url(); ?> ')"></a>
- </div>
- <div class="detail">
- <h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
- <span class="category"><?php the_category( '•' ); ?></span>
- <p class="description"><a href="<?php the_permalink() ?>"><?php the_excerpt(); ?></a></p>
- <a class="see-more" href="<?php the_permalink() ?>">Ver mais</a>
- </div>
- </li>
- <?php
- endforeach;
- ?>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement