Site logo

Archived topic

Term Separator in Elements

3 replies · Started by Dwayne on May 14, 2020

Viewing posts 1–4 of 4

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.

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!

This archived topic is closed to new replies.