RSS
 

WordPress displayed summary in homepage and Categories page

20 May

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

 

Leave a Reply