# How to show Category on post Element?

**URL:** <https://forum.bricksbuilder.io/t/how-to-show-category-on-post-element/684>\
**Category:** How To\
**Created:** [July 24, 2021, 3:54pm UTC](https://forum.bricksbuilder.io/t/how-to-show-category-on-post-element/684 "2021-07-24T15:54:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wissam](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/wissam/32/395_2.png) [@wissam](https://forum.bricksbuilder.io/u/wissam)\
**Post date:** [July 24, 2021, 3:54pm UTC](https://forum.bricksbuilder.io/t/how-to-show-category-on-post-element/684/1 "2021-07-24T15:54:40Z")

</div>

I need to achieve something like the image below showing the category on the post. When I try the meta category it’s showing all categories but I just need to show one category the parent or the first category.

 ![Screenshot_20210724-224517_Chrome](https://forum.bricksbuilder.io/uploads/default/original/1X/149ab521b79a9592aa8e1a10d92d83969ec15425.jpeg)

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [July 24, 2021, 4:56pm UTC](https://forum.bricksbuilder.io/t/how-to-show-category-on-post-element/684/2 "2021-07-24T16:56:49Z")

</div>

Hi @wissam,

afaik you can´t control this within the posts element settings without touching the code, but you can control the output via css. Let’s say you add the post\_terms\_category field as a p tag, just paste this css code inside the custom css settings of the post element:

```
root .content-wrapper p.dynamic a {
  display: none;
}

root .content-wrapper p.dynamic a:first-of-type {
  display: inline-block;
}

/** Alternative: access via data field id

root p[data-field-id='paste-the-id-here'] a {
  display: none;
}

root p[data-field-id='paste-the-id-here'] a:first-of-type {
  display: inline-block;
}
*/

```

 ![Bildschirmfoto 2021-07-24 um 18.31.16](https://forum.bricksbuilder.io/uploads/default/original/1X/1a7b938f47220309004e71492e432b358b8c4ea0.png)

The first post in my screenshot has two Categories, but after applying the css, only the first one is showing. The only thing missing is to “remove” the comma…

Regards,  
timmse

---

<div class="post-metadata">

**Author:** ![wissam](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/wissam/32/395_2.png) [@wissam](https://forum.bricksbuilder.io/u/wissam)\
**Post date:** [July 24, 2021, 5:08pm UTC](https://forum.bricksbuilder.io/t/how-to-show-category-on-post-element/684/3 "2021-07-24T17:08:54Z")

</div>

You’re a life saver thank you

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [July 24, 2021, 7:21pm UTC](https://forum.bricksbuilder.io/t/how-to-show-category-on-post-element/684/4 "2021-07-24T19:21:45Z")

</div>

You´re welcome!  
I just saw a really [simple solution](https://forum.bricksbuilder.io/t/solved-meta-tags-seperator-not-working/642/4) in one of your threads to remove the comma, available in Bricks 1.3.2.

Instead of using {post\_terms\_category} inside the dynamic data field just use {post\_terms\_category:} and the comma is gone.
