<p>You can use the Twig <a href="https://twig.symfony.com/doc/2.x/filters/slice.html" rel="nofollow noreferrer">slice</a> filter do do this, e.g.: <code>entry.text |slice(0, 100)</code></p>

<p>If you want something that looks a little nicer, and you're using the <a href="https://github.com/nystudio107/seomatic" rel="nofollow noreferrer">SEOmatic</a> plugin, you can use the <a href="https://github.com/nystudio107/seomatic/wiki/15.-Utility-Filters-&amp;-Functions#truncatestringonword" rel="nofollow noreferrer">truncateStringOnWord</a> filter, which will truncate to the number of characters you want, but only on word breaks (and it'll add an …).</p>

CC BY-SA 3.0
2017-10-19T20:23:42.890Z
I put in {{entry.blogentry | slice(0, 40 )}} but I get the <p> tags and all that. I might have to try that SEOmatic plugin but would like to try something else.
kingkelly
CC BY-SA 3.0
2017-10-20T04:13:34.657Z
Speaking from experience, your best bet is to use SEOmatic. It is pretty fantastic.
Damon
CC BY-SA 3.0
2017-10-19T20:05:09.743Z
2017-10-19T20:05:09.743Z
andrew.welch
<p>I want to display just a short blurb from each blog entry. I dont know how to display my { entry.blogentry } without having all of the text show up.</p>

<p>Is there a way to just show the first 100 characters OR first few lines?</p>

<channels>
Display X number of characters from an entry
# Display X number of characters from an entry

(Asked by: username_0 on 2017-10-19)

I want to display just a short blurb from each blog entry. I dont know how to display my { entry.blogentry } without having all of the text show up.

Is there a way to just show the first 100 characters OR first few lines?

**Tags:** channels

---

## 1 answers

### Answer by username_1 on 2017-10-19. Score: 3

You can use the Twig [slice](https://twig.symfony.com/doc/2.x/filters/slice.html) filter do do this, e.g.: `entry.text |slice(0, 100)`

If you want something that looks a little nicer, and you're using the [SEOmatic](https://github.com/nystudio107/seomatic) plugin, you can use the [truncateStringOnWord](https://github.com/nystudio107/seomatic/wiki/15.-Utility-Filters-&-Functions#truncatestringonword) filter, which will truncate to the number of characters you want, but only on word breaks (and it'll add an …).

> **Comments:**
> **username_0**: I put in {{entry.blogentry | slice(0, 40 )}} but I get the <p> tags and all that. I might have to try that SEOmatic plugin but would like to try something else.  
> **username_2**: Speaking from experience, your best bet is to use SEOmatic. It is pretty fantastic.  

---

