Return to Snippet

Revision: 13509
at April 26, 2009 15:21 by justinseiter


Initial Code
<?php
  $args=array(
    'showposts'=>3,
    'caller_get_posts'=>1
  );
 $my_query = new WP_Query($args);
  if( $my_query->have_posts() ) {
    while ($my_query->have_posts()) : $my_query->the_post(); ?>
      <p><small><?php the_time('m.d.y') ?></small> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
    <?php
    endwhile;
  }
?>

Initial URL
http://wordpress.org/support/topic/244522

Initial Description


Initial Title
Show Post Date on Recent Posts in WordPress Sidebar

Initial Tags
php, wordpress

Initial Language
PHP