Currently I have code that pulls the latest blog post into my home page. The main content is pulled using the following code:
<?php the_content(); ?>
However, currently all of the post is displayed and I wish to limit the text that is displayed and them have a “Read More” link. I know I can achieve this by using the the_excerpt function but I would prefer it to be done automatically.
- The topic ‘Add a Read More link’ is closed to new replies.