16 Temmuz 2013 Salı

adding auto read more link in wordpress

Hello dear bloggers! this time we are gonna find out how to add auto "Read More.." link in wordpress.A note please this post for those whose template doesn't include auto read more link. Some template doesn't have that function, for this reason a visitor sees whole post instead seeing summary. Actually when a wordpress template doesn't have read more link its main page(index.php) can be seen too long.There are two ways to add this function:
First way;
1- in index.php replace <?php the_content(); ?> with <?php the_excerpt(); ?>
2-in function.php paste these code lines



Second Way
1-in index.php add following code lines

Finally save the template and see the result.Thank you for reading my article.See you next time with a new tip or trick.

0 yorum:

Yorum Gönder