Use excerpt in posts
URL to the page in question:
-
Hi!
Is there possible to use excerpts in the blog posts. It would be nice if just a part of the different blog articles shows up when I go to the blog. Today it shows the whole text when I scroll down the different blog posts.
Thanks for help:)
Ole,
You can do that. One option is to is to use the “more” tag that’s part of the WordPress post editor. When you insert that tag, WordPress will place a more link in the archive view and all content after that will be visible only on the single post view.
The other option is to edit the theme just a bit. Here’s what to do there:
- Go to the appearance section and select edit to open up the theme editor.
- From the list of files on your right, choose archive.php and look for this spot:
the_content(__('Read more', 'organizedthemes'))
- Replace that with this:
the_excerpt()
- Save your changes
That will replace the full content in the archive view with the excerpt.
If you run into any trouble, just let me know,
Bill
I tried both options and I think the “more” tag works well for us.
Thank you 🙂
- The topic ‘Use excerpt in posts’ is closed to new replies.