Wordpress: Query page excerpt
Copy this code and paste it in your HTML
<?php query_posts('post_type=page&posts_per_page=1&page_id=2'); ?>
<?php while (have_posts()) : the_post(); ?>
<h3><?php the_title(); ?></h3> <p><?php the_excerpt(); ?></p> <?php endwhile;
//Reset Query
wp_reset_query(); ?>
Report this snippet
Comments
Subscribe to comments