Archived topic
Term Separator in Elements
3 replies · Started by Dwayne on May 14, 2020
I wanted to get rid of commas in the category display.
Leo pointed me to the following filter:
add_filter( 'generate_term_separator', function() {
return '';
} );
It works perfectly generally.
However, if displaying terms in a HEADER ELEMENT (via {{post_terms.category}} ) the display reverts back to commas as a separator.
Hi there,
This should help:
https://docs.generatepress.com/article/generate_page_hero_terms_separator/
I love you Leo. I didn't realize there was a specific filter for Header Elements. Thanks!
No problem :)
Not an easy filter to find!