/ Published in: PHP
Modify the array to get different number of posts, change the order, change / add categories etc.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $postslist = get_posts( $args ); foreach ($postslist as $post) : setup_postdata($post); ?> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php the_excerpt(); ?> <?php endforeach; ?>