[thebestsolver.com] How to create Auto Read More (Excerpt) on WordPress ?
Find code below on index.php file, in your themes
<?php the_content('(read more…'); ?>
After found, change code above with below code
<?php the_excerpt('(read more…'); ?>
Problem solved, but “Readmore” text not contain link to the post. Don’t worry, add this code to add link to the post
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">Read More…!!!</a>
So, Complete Code is
<?php the_excerpt('(read more…'); ?><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">Read More…!!!</a>
Rating: 5 like it» Reviewed by Best Solver on In Create Auto Read More (Excerpt) on WordPress
Thanks a lot. There’s no other blog that can teach me like yours. Simple but yet workable. Thanks.