# Custom Layout post terms, only show primary category

**URL:** <https://community.wpbeaverbuilder.com/t/custom-layout-post-terms-only-show-primary-category/16985>\
**Category:** Developers\
**Created:** [February 22, 2023, 11:53pm UTC](https://community.wpbeaverbuilder.com/t/custom-layout-post-terms-only-show-primary-category/16985 "2023-02-22T23:53:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sky4est](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@sky4est](https://community.wpbeaverbuilder.com/u/sky4est)\
**Post date:** [February 22, 2023, 11:53pm UTC](https://community.wpbeaverbuilder.com/t/custom-layout-post-terms-only-show-primary-category/16985/1 "2023-02-22T23:53:36Z")

</div>

Hello,  
I have a custom layout for my posts module that I would like to only show the primary category on. I have this code (below) working but it seems to only grab the first category alphabetically.

[wpbb post:terms\_list taxonomy=‘category’ html\_list=‘ul’ separator=', ’ linked=‘yes’ limit=‘1’]

Does anybody have a suggestion? Thank you!

---

<div class="post-metadata">

**Author:** ![avanti](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/avanti/32/930_2.png) [@avanti](https://community.wpbeaverbuilder.com/u/avanti)\
**Post date:** [March 3, 2023, 10:18pm UTC](https://community.wpbeaverbuilder.com/t/custom-layout-post-terms-only-show-primary-category/16985/2 "2023-03-03T22:18:58Z")

</div>

Hi, Loops & Logic can do that:  
[https://tangibleservice.com/hc/864109357/65/loop-taxonomy-term?category\_id=43](https://tangibleservice.com/hc/864109357/65/loop-taxonomy-term?category_id=43)
