Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $args = array( 'numberposts' => 20, 'post_status'=>"publish",'post_type'=>"post",'order'=>"DESC",'orderby'=>"post_date");
- $postslist = get_posts( $args );?>
- <ul id="events" class="test">
- <?php foreach ($postslist as $post) : setup_postdata($post); ?>
- <li>
- <?php the_date('F d');?><br/>
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
- </li>
- <?php endforeach; ?>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement