Archived topic
Remove comma from category list output
3 replies · Started by Kevin on January 8, 2019
Viewing posts 1–4 of 4
Hi there,
When building an element and using the {{post_terms.category}} GP template tag, a comma is output in between each term. I'd like to remove them. I searched for a filter but was unable to find one. Is there a way to achieve this?
PS: My demo website shows the symptom in the hero.
Hi there,
Try this:
add_filter( 'generate_page_hero_terms_separator', function() {
return '';
} );
Let me know :)
I knew you'd have a filter for it! Thanks!
You're welcome :)
This archived topic is closed to new replies.