How to add an excerpt
Recently want to turn my posts into excerpts, and tried doing this by writing in the excerpt box on the ‘edit post’ screen in dashboard. However, it seems this is not possible until I replace <?php the_content; ?> with <?php the_excerpt; ?> which according to various web sources, is located in the theme’s index.php file. However, I couldn’t find this in mine, but found it in the content.php file after finding this: http://wordpress.stackexchange.com/questions/22123/twenty-eleven-home-page-show-only-excerpt
So…after copying the file into my child theme, I commented out the <?php the_content; ?> and replaced it with <?php the_excerpt; ?>. After saving, I loaded the page to find that my page is still showing the full post and no excerpt…anybody know what I am doing wrong?
Thanks for your time!
- The topic ‘How to add an excerpt’ is closed to new replies.