Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array( 'posts_per_page' => 5 );
- $lastposts = get_posts( $args );
- foreach($lastposts as $post) : setup_postdata($post); ?>
- <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
- <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement