Add Built-In Way to Join Array Items with a Separator
In WordPress, it's very common to display a list of taxonomy terms (like categories or tags) for a post, formatted like:
Categories: Design, UI, Inspiration
Each term is optionally linked to its archive page, and the list is comma-separated.
In Clutch, if you're querying WordPress terms via a wp:post.categories or wp:post.tags field and looping through them in a repeater or component, you currently get a list of nodes, but you can't easily insert commas between them, because:
You can't conditionally render a comma unless you know it’s not the last item
There’s no built-in helper (like
join(", ")for rendering JSX or string templates)Users are resorting to CSS tricks like adding a comma via
::afteron every.termexcept the last one
This works visually, but it’s a hack — it doesn’t help screen readers, and it makes linking the terms more complicated.
✅ How to Reproduce in Clutch
Create a WordPress post with multiple categories or tags.
Use the Clutch WordPress integration to fetch the terms (e.g.
wp:post.categories).render them using loop > text bind
Notice: There’s no comma between them, and no way to insert one except using CSS pseudo-selectors or hacking around it.
🐞 Feature Request / Bug Report
Title: No Easy Way to Render Comma-Separated Term Names (Linked or Unlinked)
Issue:
There’s currently no built-in or clean way in Clutch to render a list of taxonomy terms (e.g., categories or tags) as a comma-separated list — especially when the terms are linked.
This is a very common pattern in WordPress theming (e.g. “Design, UI, Inspiration”), but Clutch users have to resort to fragile CSS pseudo-selectors (:not(:last-child)::after) or hand-written conditional logic.
✅ Steps to Reproduce
Query WordPress terms (e.g.,
wp:post.categories) in a post cardMap them into a component like
TextLinkTry to insert commas between them
Discover there is no built-in helper or
join-style control
⚠️ Impact
Breaks a very common WP pattern
Poor accessibility with CSS-only workarounds
Leads to inconsistent styling or hard-to-maintain markup
Log in to comment and vote
No comments yet
Be the first to share your thoughts.