Revision: 37262
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 7, 2010 09:34 by austinhappel
Initial Code
<ul> <?php global $post; $tmp_post = $post; $myposts = get_posts('posts_per_page=5&offset=1&category=1'); foreach($myposts as $post) : setup_postdata($post); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?> <?php $post = $tmp_post; ?> </ul>
Initial URL
Initial Description
Initial Title
get_posts - reset post list after finished
Initial Tags
Initial Language
PHP