Title: Query Loop outputting same tags
Last modified: August 5, 2026

---

# Query Loop outputting same tags

 *  [brentcredle](https://wordpress.org/support/users/brentcredle/)
 * (@brentcredle)
 * [3 days, 19 hours ago](https://wordpress.org/support/topic/query-loop-outputting-same-tags/)
 * Hi,
 * I’m using GenerateBlocks Pro 2.4.0 with the new Query Loop.
 * I’m trying to display the current post’s tags inside the Post Template.
 * I tried using a shortcode that calls `get_the_tags()` / `get_the_terms()`, but
   every post card displays the same tags.
 * Is there an official GenerateBlocks way to output the current post’s tags as 
   separate items (pills) inside the Query Loop?
 * I’d prefer to avoid custom workarounds so the solution remains compatible with
   future updates.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [ying](https://wordpress.org/support/users/yingscarlett/)
 * (@yingscarlett)
 * [3 days, 15 hours ago](https://wordpress.org/support/topic/query-loop-outputting-same-tags/#post-18985302)
 * Hi there,
 * You can use a GB text block to pull the `{{term_list}} `dynamic tag in the loop
   item block.
 * [https://learn.generatepress.com/blocks/dynamic-tags/term-list/](https://learn.generatepress.com/blocks/dynamic-tags/term-list/)
 *  Thread Starter [brentcredle](https://wordpress.org/support/users/brentcredle/)
 * (@brentcredle)
 * [3 days, 14 hours ago](https://wordpress.org/support/topic/query-loop-outputting-same-tags/#post-18985327)
 * Thanks Ying, I’ll try that.
 *  Thread Starter [brentcredle](https://wordpress.org/support/users/brentcredle/)
 * (@brentcredle)
 * [3 days, 1 hour ago](https://wordpress.org/support/topic/query-loop-outputting-same-tags/#post-18985995)
 * Just got around to try it. `{{term_list}}` works, but it renders all terms as
   a single string. Is there a way to output each term as a separate HTML element(
   or wrap each term in its own span) so they can be styled as pills?
 *  [George](https://wordpress.org/support/users/quantum_leap/)
 * (@quantum_leap)
 * [3 days ago](https://wordpress.org/support/topic/query-loop-outputting-same-tags/#post-18986054)
 * Hello,
 * You would need to select the dynamic `{{term_list}}` block and set it to display
   as `flex` with a column gap value (to separate the pill items). Then, you would
   need to style the dynamic block’s `link` selector accordingly, like adding paddings,
   background color and border radius.
 *  Thread Starter [brentcredle](https://wordpress.org/support/users/brentcredle/)
 * (@brentcredle)
 * [2 days, 23 hours ago](https://wordpress.org/support/topic/query-loop-outputting-same-tags/#post-18986118)
 * Hi George, thank you for sharing that solution. I just follow your steps and 
   it worked perfectly.
 *  [George](https://wordpress.org/support/users/quantum_leap/)
 * (@quantum_leap)
 * [2 days, 22 hours ago](https://wordpress.org/support/topic/query-loop-outputting-same-tags/#post-18986164)
 * Great, no problem!

Viewing 6 replies - 1 through 6 (of 6 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fquery-loop-outputting-same-tags%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/generateblocks/assets/icon.svg?rev=3239461)
 * [GenerateBlocks](https://wordpress.org/plugins/generateblocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/generateblocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/generateblocks/)
 * [Active Topics](https://wordpress.org/support/plugin/generateblocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/generateblocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/generateblocks/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [George](https://wordpress.org/support/users/quantum_leap/)
 * Last activity: [2 days, 22 hours ago](https://wordpress.org/support/topic/query-loop-outputting-same-tags/#post-18986164)
 * Status: not resolved