Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h2>Recent Posts</h2>
- <ul>
- <?php
- $args = array( 'numberposts' => '4' );
- $recent_posts = wp_get_recent_posts( $args );
- foreach( $recent_posts as $recent ){
- echo '<li><a href="' . get_permalink($recent["ID"]) . '" title="Look '.esc_attr($recent["post_title"]).'" >' . $recent["post_title"].'</a> </li> ';
- }
- ?>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement