SHARE
TWEET

Recent Post in Page atau 100 Post Terbaru

pustakakoran Apr 15th, 2017 (edited) 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <ol>
  2. <?php
  3.         $args = array( 'numberposts' => '100' );
  4.     $recent_posts = wp_get_recent_posts( $args );
  5.     foreach( $recent_posts as $recent ){
  6.         echo '<li>' . date( 'l j F Y', strtotime( $recent['post_date'] ) ) .' ---> <a href="' . get_permalink($recent["ID"]) . '" title="Look '.$recent["post_title"].'" >' .   $recent["post_title"].'</a> </li> ';
  7.     }
  8. ?>
  9. </ol>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top