List Specific Pages with Title, Excerpt and Link

<div>
<?php global $post; $myposts = get_posts(‘post_type=page&include=100,200,300&orderby=post_date&order=ASC’); ?>
<ul>
<?php $posts_counter = 0; ?>
<?php foreach( $myposts as $post ) : setup_postdata( $post ); $posts_counter++;?>
<li>
<div>
<h2><a href=”<?php the_permalink(); ?>”><?php the_title(”); ?></a></h2>
<div><?php the_excerpt(); ?></div>
<div><a href=”<?php the_permalink(); ?>”>Read more</a></div>
</div>
</li>
<?php endforeach; wp_reset_query(); ?>
</ul>
</div>

Leave a Reply

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