Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="newspage">
- <?php
- $lastposts = get_posts('numberposts=5&category=1');
- foreach($lastposts as $post) :
- setup_postdata($post);
- ?>
- <h1><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></h1>
- <small>Published on</small>
- <date><?php the_time('F j, Y') ?>.</date>
- <h4><?php the_content(); ?></h4>
- <?php endforeach; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement