Guest User

Ultimi articoli Wordpress

a guest
Feb 15th, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php
  2. $args = array( 'numberposts' => 10, 'order'=> 'ASC', 'orderby' => 'title' );
  3. $postslist = get_posts( $args );
  4. foreach ($postslist as $post) :  setup_postdata($post); ?>
  5.     <div>
  6.         <?php the_date(); ?>
  7.         <br />
  8.         <?php the_title(); ?>  
  9.         <?php the_excerpt(); ?>
  10.     </div>
  11. <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment