wordpress - Displaying Only The Excerpt In Post -


i used following place call excerpt show, showing full post:-

this in function:-

add_action( 'init', 'my_add_excerpts_to_pages' ); function my_add_excerpts_to_pages() {  add_post_type_support( 'page', 'excerpt' ); 

also query

<?php // retrieve 1 post id of 5 query_posts( 'p=1' );  // set $more 0 in order first part of post global $more; $more = 0;  // loop while (have_posts()) : the_post(); the_content( 'read full post ยป' ); endwhile; ?> 

please can advise? thanks


Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -