Post List

*/

function posts_list () {
 $output='<ul>’;
 $posts = get_posts(‘numberposts=-1’);
 foreach($posts as $post){
  $permalink = get_permalink( $post->ID );
  $output.= ‘<li>’ . ‘<a href=”‘ . $permalink . ‘”>’ . $post->post_title . ‘</a></li>’;
 }
 $output.='</ul>’;
 return $output;

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.