• Hey! I really need wordpress plugin (or just php code) which shows last added pages (NOT POSTS/NEWS!) in my sidebar.

    Do u know any? I was looking for it for ages and didn’t find any..

    Thanks and sorry for my english.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter wujek

    (@wujek)

    please.. It’s very important for me

    Thread Starter wujek

    (@wujek)

    I GOT IT!

    It helped me:

    <?php
       $args=array(
       'showposts'=>5,
       'post_type' => 'page',
       '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;
    }
    ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Looking for "latest pages" plugin’ is closed to new replies.