Top

yard127 on "WordPress displayed summary in homepage and Categories page"

May 20, 2010 by  

I find it have two ways to Solve this problem.

1. find you template file name “index.php”
Look for a php code like

the_content(‘Read more…’);

and replace with

the_excerpt(‘Read more…’);

use this method,when you post your Article,you must put the “more” standard enterprises in your article,before the “more” is the summary of your article.

2.I think This is a good idear for display summary,It very easy,and simple
first,find you template file name “index.php” and your Categories themes page

look for a php code like

the_content(‘Read more…’);

and replace whit

<?php echo mb_strimwidth(strip_tags(apply_filters(‘the_content’, $post->post_content)), 0, 200,”……”); ?>

You can view effect in the site http://www.gutool.com

Here ,200 is The total number of your summary,You can modify the number as you want

Be Sociable, Share!
Share

Comments

Facebook comments:

Feel free to leave a comment...
and oh, if you want a pic to show with your comment, go get a gravatar!





*
Bottom