# Exclude term from being displayed in array

**URL:** <https://discourse.gohugo.io/t/exclude-term-from-being-displayed-in-array/9872>\
**Category:** support\
**Created:** [January 6, 2018, 3:02pm UTC](https://discourse.gohugo.io/t/exclude-term-from-being-displayed-in-array/9872 "2018-01-06T15:02:16Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![runhide](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@runhide](https://discourse.gohugo.io/u/runhide)\
**Post date:** [January 14, 2018, 2:50pm UTC](https://discourse.gohugo.io/t/exclude-term-from-being-displayed-in-array/9872/8 "2018-01-14T14:50:56Z")

</div>

Thanks! Appreciate the help. It works like a charm.

I managed to figure it out yesterday by using lots of replace statements, thats why I asked [here](https://discourse.gohugo.io/t/refactor-multiple-replace-statements/9994/2) how to refactor the code.

But your solution is much better. Thanks again. 🙏

---

_[View the full topic](https://discourse.gohugo.io/t/exclude-term-from-being-displayed-in-array/9872)._
